/* BdayJoy Custom Styles */

:root {
    --primary-gradient: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
    --secondary-gradient: linear-gradient(135deg, #f472b6 0%, #d8b4fe 100%);
    --accent-gradient: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
}

/* Birthday Cake Icon Animation */
.birthday-cake-icon {
    animation: bounce 2s infinite;
    display: inline-block;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Smooth Transitions */
a, button {
    transition: all 0.3s ease;
}

/* Gradient Text */
.bg-clip-text {
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #be185d 0%, #7e22ce 100%);
}

/* Selection Color */
::selection {
    background: rgba(236, 72, 153, 0.3);
    color: inherit;
}

/* Form Inputs */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="time"],
select,
textarea {
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

/* Checkbox and Radio Custom Styling */
input[type="checkbox"] {
    cursor: pointer;
    accent-color: #a855f7;
}

input[type="radio"] {
    cursor: pointer;
    accent-color: #ec4899;
}

/* Hover Effects */
.group:hover {
    animation: slideUp 0.3s ease forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(0);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }
    to {
        transform: translateY(-8px);
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    }
}

/* Button Styles */
button {
    cursor: pointer;
    user-select: none;
}

button:active {
    transform: scale(0.98);
}

/* Card Styles */
.card {
    border-radius: 1rem;
    background: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

/* Gradient Backgrounds */
.gradient-pink-purple {
    background: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
}

.gradient-blue-cyan {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
}

.gradient-green-emerald {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
}

.badge-pink {
    background: rgba(236, 72, 153, 0.1);
    color: #be185d;
}

.badge-purple {
    background: rgba(168, 85, 247, 0.1);
    color: #6b21a8;
}

.badge-blue {
    background: rgba(14, 165, 233, 0.1);
    color: #0369a1;
}

/* Loading Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    animation: spin 1s linear infinite;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .birthday-cake-icon {
        font-size: 1.5rem;
    }

    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    .grid {
        grid-template-columns: 1fr !important;
    }
}

/* Print Styles */
@media print {
    nav, footer {
        display: none;
    }

    body {
        background: white;
    }

    .card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Visible for Keyboard Navigation */
*:focus-visible {
    outline: 2px solid #a855f7;
    outline-offset: 2px;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

th {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    font-weight: 600;
    color: #6b21a8;
}

tr:hover {
    background: rgba(168, 85, 247, 0.05);
}

/* Code Block Styles */
code {
    background: #f3f4f6;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    color: #e11d48;
}

pre {
    background: #1f2937;
    color: #f3f4f6;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1rem 0;
}

pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Link Styles */
a {
    color: #a855f7;
    text-decoration: none;
}

a:hover {
    color: #7e22ce;
    text-decoration: underline;
}

a:visited {
    color: #c084fc;
}

/* List Styles */
ul, ol {
    margin-left: 1.5rem;
}

ul li, ol li {
    margin-bottom: 0.5rem;
}

/* Blockquote Styles */
blockquote {
    border-left: 4px solid #a855f7;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #6b7280;
    font-style: italic;
}

/* Strong and Emphasis */
strong {
    font-weight: 700;
    color: #1f2937;
}

em {
    font-style: italic;
    color: #4b5563;
}

/* Utility Classes */
.shadow-soft {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.shadow-medium {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.shadow-hard {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.transition-all {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.transform {
    transform: translate(0, 0) scale(1) rotate(0);
}

