/* Custom styles to complement Bootstrap */

:root {
    --primary-gradient: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    --secondary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f8f9fa;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Navigation */
.navbar {
    background: var(--primary-gradient);
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: white !important;
    transition: transform 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

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

.nav-link:hover,
.nav-link.active {
    color: white !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: white;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    background: var(--primary-gradient);
    color: white;
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,106.7C1248,96,1344,96,1392,96L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    animation: fadeInDown 0.8s ease;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease;
    opacity: 0.95;
}

.btn-custom {
    background: white;
    color: #ff6b9d;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background: white;
    color: #c44569;
}

.btn-outline-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.random-line-display {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    animation: fadeIn 1s ease;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.random-line-display .pickup-line {
    color: #2d3436;
    min-height: 50px;
    transition: opacity 0.3s ease;
}

#copyRandomLineBtn {
    border-radius: 25px;
    transition: all 0.3s ease;
    border-width: 2px;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.2);
}

#copyRandomLineBtn:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.4);
}

#copyRandomLineBtn:active {
    transform: translateY(0);
}

/* Search Section */
.search-section {
    margin-top: -30px;
    position: relative;
    z-index: 2;
}

.search-section .form-control {
    border: 2px solid #e1e8ed;
    border-radius: 50px 0 0 50px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.search-section .form-control:focus {
    border-color: #ff6b9d;
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 157, 0.25);
}

.search-section .btn-primary {
    background: var(--primary-gradient);
    border: none;
    border-radius: 0 50px 50px 0;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-section .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.4);
}

/* Category Cards */
.category-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-icon {
    font-size: 3.5rem;
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

.bg-gradient-custom {
    background: var(--primary-gradient) !important;
    border: none;
    padding: 0.5rem 1rem;
    font-weight: 600;
}

/* Filter Controls */
.btn-filter {
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-filter.active {
    background: var(--primary-gradient) !important;
    border-color: transparent !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}

.btn-filter:hover {
    transform: translateY(-2px);
}

/* Line Cards */
.line-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease;
    border: none;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.line-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.line-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.line-category-tag {
    display: inline-block;
    background: var(--primary-gradient);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.line-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.25rem;
}

.btn-icon:hover {
    transform: scale(1.2);
}

.btn-favorite {
    filter: grayscale(100%);
    opacity: 0.6;
}

.btn-favorite.active {
    filter: grayscale(0%);
    opacity: 1;
    animation: heartBeat 0.3s ease;
}

.btn-copy {
    opacity: 0.7;
}

.btn-copy:hover {
    opacity: 1;
}

.line-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #2d3436;
    font-style: italic;
    flex-grow: 1;
}

/* Load More Button */
#loadMoreBtn {
    border-radius: 50px;
    font-weight: 600;
    padding: 0.75rem 2.5rem;
    transition: all 0.3s ease;
}

#loadMoreBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Copy Notification */
.copy-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    animation: slideInRight 0.3s ease;
    z-index: 1050;
    font-weight: 500;
}

/* Footer */
footer a:hover {
    color: #ff6b9d !important;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem !important;
    }

    .hero-subtitle {
        font-size: 1rem !important;
    }

    .hero {
        min-height: 60vh;
    }

    .category-icon {
        font-size: 2.5rem;
    }

    .random-line-display .pickup-line {
        font-size: 1rem !important;
    }

    .search-section {
        margin-top: 0;
    }

    .filter-controls {
        gap: 0.5rem !important;
    }

    .btn-filter {
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem !important;
    }

    .hero {
        min-height: 50vh;
    }

    .copy-notification {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        text-align: center;
    }
}

/* Custom Bootstrap overrides */
.btn-primary {
    background: var(--primary-gradient);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #c44569 0%, #ff6b9d 100%);
    border: none;
}

.btn-outline-primary {
    border-color: #ff6b9d;
    color: #ff6b9d;
}

.btn-outline-primary:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
}

.text-primary {
    color: #ff6b9d !important;
}

/* Scroll padding for fixed navbar */
section {
    scroll-margin-top: 80px;
}
