* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-image: url('bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #e2e8f0;
    min-height: 100vh;
}

/* Header / Nav */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.search-container {
    flex: 0 1 500px;
}

.search-bar {
    width: 100%;
    padding: 12px 20px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-bar:focus {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

.profile-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logout-btn {
    padding: 8px 16px;
    background: linear-gradient(to bottom, #74c728 0%, #469113 100%);
    border: 3px solid #5a3c20;
    border-radius: 10px;
    box-shadow: inset 0px 3px 0px 0px #aef649, inset 0px -2px 0px 0px rgba(0,0,0,0.2), 0px 4px 6px rgba(0,0,0,0.5);
    color: #ffea00 !important;
    font-size: 0.9rem;
    font-weight: 900;
    text-shadow: 
        1.5px 1.5px 0 #111,
        -1.5px -1.5px 0 #111,
        1.5px -1.5px 0 #111,
        -1.5px 1.5px 0 #111,
        0px 3px 0px rgba(0,0,0,0.6);
    cursor: pointer;
    transition: transform 0.1s, filter 0.1s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.logout-btn:active {
    transform: translateY(2px);
    box-shadow: inset 0px 1px 0px 0px #aef649, inset 0px -1px 0px 0px rgba(0,0,0,0.2), 0px 1px 3px rgba(0,0,0,0.5);
}

/* Main Content */
.main-content {
    padding: 40px;
    max-width: 1200px;
    margin: 40px auto;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.page-title {
    margin-bottom: 30px;
    font-size: 2rem;
    font-weight: 600;
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: block;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.card-excerpt {
    font-size: 0.9rem;
    color: #94a3b8;
}

/* Post Detail */
.post-detail {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
}

.post-header-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 30px;
}

.hero-btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(to bottom, #74c728 0%, #469113 100%);
    border: 3px solid #5a3c20;
    border-radius: 10px;
    box-shadow: inset 0px 3px 0px 0px #aef649, inset 0px -2px 0px 0px rgba(0,0,0,0.2), 0px 4px 6px rgba(0,0,0,0.5);
    color: #ffea00 !important;
    font-size: 1.1rem;
    font-weight: 900;
    text-shadow: 
        1.5px 1.5px 0 #111,
        -1.5px -1.5px 0 #111,
        1.5px -1.5px 0 #111,
        -1.5px 1.5px 0 #111,
        0px 3px 0px rgba(0,0,0,0.6);
    cursor: pointer;
    transition: transform 0.1s, filter 0.1s;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
}

.hero-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    text-decoration: none;
}

.hero-btn:active {
    transform: translateY(2px);
    box-shadow: inset 0px 1px 0px 0px #aef649, inset 0px -1px 0px 0px rgba(0,0,0,0.2), 0px 1px 3px rgba(0,0,0,0.5);
}

.nav-icon-btn {
    padding: 8px 16px;
    background: linear-gradient(to bottom, #74c728 0%, #469113 100%);
    border: 3px solid #5a3c20;
    border-radius: 10px;
    box-shadow: inset 0px 3px 0px 0px #aef649, inset 0px -2px 0px 0px rgba(0,0,0,0.2), 0px 4px 6px rgba(0,0,0,0.5);
    color: #ffea00 !important;
    font-size: 0.9rem;
    font-weight: 900;
    text-shadow: 
        1.5px 1.5px 0 #111,
        -1.5px -1.5px 0 #111,
        1.5px -1.5px 0 #111,
        -1.5px 1.5px 0 #111,
        0px 3px 0px rgba(0,0,0,0.6);
    cursor: pointer;
    transition: transform 0.1s, filter 0.1s;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-icon-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.nav-icon-btn:active {
    transform: translateY(2px);
    box-shadow: inset 0px 1px 0px 0px #aef649, inset 0px -1px 0px 0px rgba(0,0,0,0.2), 0px 1px 3px rgba(0,0,0,0.5);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: -20px;
    background-color: #fde6a1;
    border-radius: 8px;
    padding: 10px 5px;
    width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    z-index: 1000;
}

.lang-option {
    padding: 10px 15px;
    color: #a1693b;
    font-family: Arial, sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: 6px;
    margin-bottom: 2px;
}

.lang-option:hover, .lang-option.active {
    background-color: #fef6da;
}

/* Site Footer */
.site-footer {
    background: #050505;
    color: #fff;
    padding: 40px 20px;
    font-family: Arial, sans-serif;
    border-top: 1px solid #222;
    margin-top: 60px;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}
.footer-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.footer-logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    margin-bottom: 8px;
}
.footer-logo-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-right: 12px;
}
.footer-logo-text {
    font-size: 1.8rem;
    font-family: 'Cinzel', serif;
    letter-spacing: 2px;
}
.footer-slogan {
    font-size: 0.85rem;
    color: #ddd;
    font-weight: bold;
    letter-spacing: 1px;
    margin: 0;
}
.footer-center {
    flex: 1;
    text-align: center;
}
.footer-links {
    margin-bottom: 12px;
}
.footer-links a {
    color: #3b82f6;
    text-decoration: none;
    margin: 0 8px;
    font-size: 0.9rem;
}
.footer-links a:hover {
    text-decoration: underline;
}
.footer-copyright {
    font-size: 0.8rem;
    color: #aaa;
    font-style: italic;
    margin: 0;
}
.footer-right {
    flex: 1;
    text-align: right;
}
.social-title {
    margin: 0 0 12px 0;
    font-size: 1.2rem;
}
.social-icons {
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}
.social-icon {
    color: #aaa;
    transition: color 0.2s, transform 0.2s;
}
.social-icon:hover {
    color: #fff;
    transform: scale(1.1);
}
.footer-disclaimer {
    font-size: 0.8rem;
    color: #888;
    line-height: 1.4;
    margin: 0;
}

@media (max-width: 900px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .footer-left, .footer-right {
        align-items: center;
        text-align: center;
    }
    .social-icons {
        justify-content: center;
    }
    .social-icon {
        margin: 0 6px;
    }
}
