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

body {
    font-family: 'Inter', sans-serif;
    background-color: #09090b;
    color: #fafafa;
    min-height: 100vh;
}


.navbar {
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-family: 'Anton', sans-serif;
    font-size: 1.8rem;
    background: linear-gradient(to bottom, #fafafa 0%, #d4d4d8 70%, #a1a1aa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.nav-link {
    color: #e4e4e7;
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.25s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Hero szekciÃ³ */
.hero-section {
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(to bottom, rgba(24, 24, 27, 0.5), rgba(9, 9, 11, 0.95));
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-title {
    font-family: 'Anton', sans-serif;
    font-size: clamp(3rem, 10vw, 5rem);
    background: linear-gradient(to bottom, #fafafa 0%, #d4d4d8 70%, #a1a1aa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #a1a1aa;
    max-width: 600px;
    margin: 0 auto;
}


.cards-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}


.plant-card {
    background: rgba(24, 24, 27, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.plant-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    background: rgba(39, 39, 42, 0.7);
}

.card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fafafa;
    margin-bottom: 0.25rem;
}

.card-latin {
    font-size: 0.9rem;
    color: #a1a1aa;
    font-style: italic;
    margin-bottom: 0.75rem;
}

.card-category {
    display: inline-block;
    padding: 0.25rem 1rem;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 40px;
    font-size: 0.85rem;
    color: #4ade80;
    margin-top: 0.5rem;
}


#detail-view {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    color: #e4e4e7;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 2rem;
    transition: all 0.25s ease;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.detail-card {
    background: rgba(24, 24, 27, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.5);
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.detail-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
}

.detail-info {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-title {
    font-family: 'Anton', sans-serif;
    font-size: 3rem;
    background: linear-gradient(to bottom, #fafafa 0%, #d4d4d8 70%, #a1a1aa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.detail-latin {
    font-size: 1.25rem;
    color: #a1a1aa;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.detail-category {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 40px;
    font-size: 1rem;
    color: #4ade80;
    margin-bottom: 1.5rem;
    width: fit-content;
}

.detail-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #d4d4d8;
}


@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.plant-card {
    animation: fadeSlideUp 0.6s ease forwards;
    opacity: 0;
}


@media (max-width: 768px) {
    .detail-content {
        grid-template-columns: 1fr;
    }

    .detail-info {
        padding: 2rem;
    }

    .detail-title {
        font-size: 2.5rem;
    }

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

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .hero-section {
        padding: 2rem 1rem;
    }

    .cards-container {
        padding: 2rem 1rem;
    }
}