﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f8f8f8;
    color: #1a1a1a;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 4rem;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    color: #7c3aed;
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-links a {
    text-decoration: none;
    color: #888;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.nav-links a.active,
.nav-links a:hover {
    color: #1a1a1a;
    background: #f0f0f0;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f5f5f5;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: border-color 0.3s;
}

.search-box:focus-within {
    border-color: #7c3aed;
}

.search-icon {
    font-size: 0.85rem;
}

.search-box input {
    border: none;
    background: none;
    outline: none;
    font-family: inherit;
    font-size: 0.85rem;
    width: 150px;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #7c3aed;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 4rem 2rem 2rem;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.3s forwards;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.page-header h1 span {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    color: #888;
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter {
    padding: 0.6rem 1.5rem;
    border: 1px solid #ddd;
    border-radius: 50px;
    background: #fff;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    color: #666;
}

.filter:hover {
    border-color: #7c3aed;
    color: #7c3aed;
}

.filter.active {
    background: #7c3aed;
    color: #fff;
    border-color: #7c3aed;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    padding: 2rem 4rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    opacity: 0;
    animation: cardFadeIn 0.6s ease forwards;
}

.card:nth-child(1) { animation-delay: 0.5s; }
.card:nth-child(2) { animation-delay: 0.6s; }
.card:nth-child(3) { animation-delay: 0.7s; }
.card:nth-child(4) { animation-delay: 0.8s; }
.card:nth-child(5) { animation-delay: 0.9s; }
.card:nth-child(6) { animation-delay: 1.0s; }

@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.card-image {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.card:hover .card-image {
    transform: scale(1.02);
}

.card-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.card-tag {
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
}

.card-body {
    padding: 1.5rem;
}

.card-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.card-body p {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.author {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.author-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
}

.author span {
    font-size: 0.85rem;
    font-weight: 500;
}

.likes {
    color: #e74c3c;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s;
}

.likes:hover {
    transform: scale(1.2);
}

/* Hidden state for filtering */
.card.hidden {
    display: none;
}

.card.show {
    animation: cardFadeIn 0.5s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem;
    }
    .nav-links, .search-box {
        display: none;
    }
    .page-header h1 {
        font-size: 2rem;
    }
    .card-grid {
        grid-template-columns: 1fr;
        padding: 1rem 1.5rem;
    }
}



/* Watermark */
body {
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='180' viewBox='0 0 260 180'%3E%3Cg transform='rotate(-20 130 90)'%3E%3Ctext x='0' y='40' fill='rgba(154,154,154,0.10)' font-size='14' font-family='Arial, sans-serif'%3EPandec%20Digital%3C/text%3E%3Ctext x='30' y='90' fill='rgba(154,154,154,0.10)' font-size='14' font-family='Arial, sans-serif'%3EPandec%20Digital%3C/text%3E%3Ctext x='0' y='140' fill='rgba(154,154,154,0.10)' font-size='14' font-family='Arial, sans-serif'%3EPandec%20Digital%3C/text%3E%3C/g%3E%3C/svg%3E");
    background-size: 260px 180px;
    opacity: 1;
    pointer-events: none;
    z-index: 1;
}

body > * {
    position: relative;
    z-index: 2;
}