/**
 * Custom CSS for Girls Only Pickup Lines
 * Trendy, Feminine, & Fun Design
 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Playfair+Display:wght@700;800;900&display=swap');

/* Custom Color Variables */
:root {
    --primary: #FF1B8D;
    --primary-dark: #E91E63;
    --secondary: #B026FF;
    --accent: #FF6B9D;
    --dark: #2D2D2D;
    --light: #FFF5F9;
    --white: #FFFFFF;

    /* Category Colors - Vibrant & Fun */
    --color-flirty: #FF1B8D;
    --color-flirty-light: #FFE5F1;
    --color-funny: #FFB800;
    --color-funny-light: #FFF8E1;
    --color-bold: #FF3D00;
    --color-bold-light: #FFE9E5;
    --color-sweet: #B026FF;
    --color-sweet-light: #F3E5FF;
    --color-clever: #00B8D4;
    --color-clever-light: #E0F7FA;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #FFF5F9 0%, #FFE5F1 100%);
    color: var(--dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(255, 27, 141, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-weight: 500;
    color: var(--dark) !important;
    position: relative;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
}

.nav-link:hover {
    color: var(--primary) !important;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    transition: width 0.3s ease;
    border-radius: 10px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary) !important;
    font-weight: 600;
}

/* Override Bootstrap Primary Color */
.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%) !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 27, 141, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 27, 141, 0.4);
    background: linear-gradient(135deg, #E91E63 0%, #9C27B0 100%);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 27, 141, 0.3);
}

.btn-light {
    background: white;
    color: var(--primary);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.5);
    color: var(--primary);
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-3px);
}

/* Hero Sections */
.hero-gradient {
    background: linear-gradient(135deg, #FF1B8D 0%, #B026FF 50%, #FF6B9D 100%);
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="hearts" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><text x="20" y="40" font-size="30" fill="rgba(255,255,255,0.1)">♥</text><text x="60" y="80" font-size="25" fill="rgba(255,255,255,0.08)">♥</text></pattern></defs><rect width="100" height="100" fill="url(%23hearts)"/></svg>');
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

.hero-gradient h1,
.hero-gradient p,
.hero-gradient .btn,
.hero-gradient a,
.hero-gradient > * {
    position: relative;
    z-index: 1;
}

.hero-gradient h1 {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-gradient-purple {
    background: linear-gradient(135deg, #B026FF 0%, #FF1B8D 50%, #FF6B9D 100%);
    position: relative;
    overflow: hidden;
}

.hero-gradient-purple::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="stars" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><text x="10" y="30" font-size="20" fill="rgba(255,255,255,0.1)">✨</text><text x="70" y="70" font-size="25" fill="rgba(255,255,255,0.08)">✨</text></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>');
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

.hero-gradient-purple h1,
.hero-gradient-purple p,
.hero-gradient-purple .btn,
.hero-gradient-purple a,
.hero-gradient-purple > * {
    position: relative;
    z-index: 1;
}

/* Category-Specific Gradients */
.bg-gradient-flirty {
    background: linear-gradient(135deg, #FF1B8D 0%, #FF6B9D 50%, #FFB8D1 100%) !important;
}

.bg-gradient-funny {
    background: linear-gradient(135deg, #FFB800 0%, #FFC933 50%, #FFD966 100%) !important;
}

.bg-gradient-bold {
    background: linear-gradient(135deg, #FF3D00 0%, #FF6333 50%, #FF8566 100%) !important;
}

.bg-gradient-sweet {
    background: linear-gradient(135deg, #B026FF 0%, #C14DFF 50%, #D680FF 100%) !important;
}

.bg-gradient-clever {
    background: linear-gradient(135deg, #00B8D4 0%, #33C9E0 50%, #66D9E8 100%) !important;
}

/* Pickup Line Cards */
.pickup-line-card {
    background: white;
    border: none;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(255, 27, 141, 0.08);
}

.pickup-line-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.pickup-line-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(255, 27, 141, 0.2);
}

.pickup-line-card .card-body {
    padding: 2rem;
}

/* Category Badges */
.badge {
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.badge-flirty {
    background: linear-gradient(135deg, #FF1B8D 0%, #FF6B9D 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 27, 141, 0.3);
}

.badge-funny {
    background: linear-gradient(135deg, #FFB800 0%, #FFC107 100%);
    color: #663C00;
    box-shadow: 0 4px 15px rgba(255, 184, 0, 0.3);
}

.badge-bold {
    background: linear-gradient(135deg, #FF3D00 0%, #FF6B35 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 61, 0, 0.3);
}

.badge-sweet {
    background: linear-gradient(135deg, #B026FF 0%, #D946EF 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(176, 38, 255, 0.3);
}

.badge-clever {
    background: linear-gradient(135deg, #00B8D4 0%, #26C6DA 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 184, 212, 0.3);
}

/* Category Cards */
.category-card {
    display: block;
    text-decoration: none;
    border-radius: 25px;
    padding: 3rem 2rem;
    color: white;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.category-card::before {
    content: '♥';
    position: absolute;
    font-size: 8rem;
    opacity: 0.1;
    top: -20px;
    right: -20px;
    transition: all 0.4s ease;
}

.category-card:hover::before {
    transform: rotate(20deg) scale(1.2);
    opacity: 0.2;
}

.category-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    color: white;
}

.category-card h3 {
    position: relative;
    z-index: 1;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.category-card p {
    position: relative;
    z-index: 1;
    opacity: 0.95;
}

.category-card-flirty {
    background: linear-gradient(135deg, #FF1B8D 0%, #FF6B9D 100%);
}

.category-card-funny {
    background: linear-gradient(135deg, #FFB800 0%, #FFC107 100%);
}

.category-card-bold {
    background: linear-gradient(135deg, #FF3D00 0%, #FF6B35 100%);
}

.category-card-sweet {
    background: linear-gradient(135deg, #B026FF 0%, #D946EF 100%);
}

.category-card-clever {
    background: linear-gradient(135deg, #00B8D4 0%, #26C6DA 100%);
}

/* Buttons in Cards */
.btn-copy {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 15px;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
}

.btn-copy:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 27, 141, 0.3);
}

.btn-copy.copied {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    animation: pulse 0.5s ease;
}

.btn-favorite {
    background: white;
    border: 2px solid #FFE5F1;
    color: var(--primary);
    font-size: 1.5rem;
    border-radius: 15px;
    width: 50px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-favorite:hover {
    background: #FFE5F1;
    transform: scale(1.1);
    border-color: var(--primary);
}

.btn-favorite.favorited {
    background: linear-gradient(135deg, #FF1B8D 0%, #FF6B9D 100%);
    color: white;
    border-color: var(--primary);
    animation: heartBeat 0.5s ease;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2D2D2D 0%, #1A1A1A 100%);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    text-decoration: none;
}

footer a:hover {
    color: var(--accent);
    transform: translateX(5px);
    display: inline-block;
}

/* Toast Notifications */
.toast {
    border-radius: 15px;
    border: none;
    backdrop-filter: blur(10px);
    animation: slideInRight 0.4s ease;
}

.toast.success {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.toast.error {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

.toast.info {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.2);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.15);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Sparkle Effect */
.sparkle {
    position: relative;
}

.sparkle::after {
    content: '✨';
    position: absolute;
    top: -10px;
    right: -10px;
    animation: sparkle 2s infinite;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Section Backgrounds */
.bg-light {
    background: linear-gradient(135deg, #FFF5F9 0%, #FFE5F1 50%, #FFF5F9 100%) !important;
}

.bg-white {
    background: white !important;
}

/* Custom Utilities */
.shadow-hover {
    transition: box-shadow 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: 0 20px 50px rgba(255, 27, 141, 0.2);
}

/* Tag Styles */
.tag {
    background: linear-gradient(135deg, #FFE5F1 0%, #FFF5F9 100%);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    display: inline-block;
    margin: 0.25rem;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .display-3 {
        font-size: 3rem;
    }

    .category-card {
        padding: 2rem 1.5rem;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }
}

/* Floating Hearts Animation */
.floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Loading State */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    to {
        left: 100%;
    }
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(255, 27, 141, 0.1);
}
