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

:root {
    --primary-color: #e91e63;
    --secondary-color: #8e44ad;
    --accent-color: #f39c12;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #27ae60;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 25px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

/* ===========================
   Navigation - Improved Professional Design
   =========================== */
.navbar {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo h1 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 0;
    line-height: 1.2;
}

.logo .tagline {
    font-size: 0.7rem;
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: block;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: var(--primary-color);
    background-color: rgba(233, 30, 99, 0.08);
    transform: translateY(-1px);
}

.nav-menu a.active {
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.9), rgba(142, 68, 173, 0.9)),
                url('../images/hero-bg.jpg') center/cover no-repeat;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 4rem 2rem;
}

.hero-content h2 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-content .btn {
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

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

/* ===========================
   Featured Section
   =========================== */
.featured-section,
.directory-section {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ===========================
   Flower Grid
   =========================== */
.flower-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.flower-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.flower-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.flower-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: var(--bg-light);
}

.flower-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.flower-card:hover .flower-image img {
    transform: scale(1.1);
}

.flower-info {
    padding: 1.5rem;
}

.flower-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.flower-type {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.flower-meaning {
    color: var(--secondary-color);
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.flower-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.flower-info .btn {
    width: 100%;
    margin-top: 1rem;
}

/* ===========================
   Info Section
   =========================== */
.info-section {
    padding: 4rem 0;
    background-color: var(--bg-white);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.info-card {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background-color: var(--bg-light);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.info-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.info-card a {
    color: var(--primary-color);
    font-weight: 500;
}

.info-card a:hover {
    color: var(--secondary-color);
}

/* ===========================
   Page Header
   =========================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    padding: 3rem 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
}

/* ===========================
   Filter Section
   =========================== */
.filter-section {
    background-color: var(--bg-white);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.search-box input {
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    width: 300px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    background-color: white;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ===========================
   Flower Detail Page
   =========================== */
.flower-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 3rem 2rem;
}

.breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: white;
    opacity: 0.8;
}

.breadcrumb a:hover {
    opacity: 1;
    text-decoration: underline;
}

.flower-hero h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.flower-details {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

.detail-main {
    background-color: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.flower-main-image {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem;
    background-color: var(--bg-light);
}

.flower-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.detail-content h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.detail-content p {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.meaning-list,
.occasions-list,
.facts-list {
    list-style: none;
    margin: 1rem 0;
}

.meaning-list li,
.occasions-list li,
.facts-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.meaning-list li:before,
.occasions-list li:before,
.facts-list li:before {
    content: "🌸";
    position: absolute;
    left: 0;
}

/* Color Meanings */
.color-meanings {
    display: grid;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.color-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    background-color: var(--bg-light);
    border-radius: 10px;
}

.color-swatch {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    flex-shrink: 0;
}

.color-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.color-info p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Types Grid */
.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.type-card {
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.type-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.type-card p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Care Instructions */
.care-instructions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.care-step {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: 10px;
}

.care-step h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.care-step p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Sidebar */
.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.quick-facts,
.related-flowers {
    background-color: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.quick-facts h3,
.related-flowers h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.fact-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.fact-item:last-child {
    border-bottom: none;
}

.fact-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.fact-item p {
    color: var(--text-dark);
    font-size: 1rem;
}

.related-flowers ul {
    list-style: none;
}

.related-flowers li {
    margin-bottom: 0.75rem;
}

.related-flowers a {
    color: var(--text-dark);
    display: block;
    padding: 0.75rem;
    border-radius: 5px;
    background-color: var(--bg-light);
    transition: all 0.3s ease;
}

.related-flowers a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.1), rgba(142, 68, 173, 0.1));
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* ===========================
   Footer
   =========================== */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 968px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow);
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .flower-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box input {
        width: 100%;
    }

    .filter-buttons {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .flower-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h2 {
        font-size: 1.75rem;
    }

    .flower-hero h1 {
        font-size: 2rem;
    }

    .care-instructions {
        grid-template-columns: 1fr;
    }

    .types-grid {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   Utility Classes
   =========================== */
.hidden {
    display: none;
}

.fade-in {
    animation: fadeInUp 0.6s ease;
}
