@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --primary-green: #558b2f;
    --primary-light: #85bb5c;
    --dark-bg: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent: #a3e635; /* Brighter green accent */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--dark-bg);
    /* Modern mobility background with overlay */
    background-image: 
        linear-gradient(to bottom, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.95)),
        url('https://images.unsplash.com/photo-1449824913935-59a10b8d2000?q=80&w=1920&auto=format&fit=crop'); /* City/Traffic background */
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    line-height: 1.6;
    min-height: 100vh;
}

/* Glassmorphism Utilities */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Header */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    border-radius: 0 0 16px 16px;
    margin-bottom: 2rem;
    border-top: none;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-area img {
    height: 60px;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.2));
}

.main-nav a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.main-nav a:hover {
    color: var(--accent);
    background: rgba(163, 230, 53, 0.1);
    border-color: rgba(163, 230, 53, 0.3);
}

/* Page Layout Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.page-title {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    margin: 2rem 0;
    background: linear-gradient(to right, #fff, var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 12px rgba(85, 139, 47, 0.2);
}

/* 2 Column Layout */
.grid-layout {
    display: grid;
    grid-template-columns: 20% 1fr;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

/* Column 1: Image */
.col-image {
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.col-image img {
    width: 100%;
    border-radius: 12px;
    border: 2px solid var(--primary-green);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    cursor: zoom-in;
    transition: transform 0.3s ease;
}
.col-image img:hover {
    transform: scale(1.02);
}

/* Column 2: Content */
.col-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

.col-content h2 {
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.text-scrollable {
    height: 350px;
    overflow-y: auto;
    padding-right: 15px;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #e2e8f0;
}
/* Custom Scrollbar */
.text-scrollable::-webkit-scrollbar {
    width: 8px;
}
.text-scrollable::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2); 
    border-radius: 10px;
}
.text-scrollable::-webkit-scrollbar-thumb {
    background: var(--primary-green); 
    border-radius: 10px;
}

/* Modern Button */
.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-green), #33691e);
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(85, 139, 47, 0.4);
    align-self: flex-start;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(85, 139, 47, 0.6);
    background: linear-gradient(135deg, var(--primary-light), var(--primary-green));
}

/* Column 3: Comments */
.col-comments {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.col-comments h3 {
    margin-bottom: 1rem;
    color: var(--text-main);
    font-size: 1.3rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.comment-form input, 
.comment-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    transition: border-color 0.3s;
}

.comment-form input:focus, 
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-light);
}

.comment-list {
    flex-grow: 1;
    overflow-y: auto;
    max-height: 250px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-item {
    background: rgba(255,255,255,0.05);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary-green);
}
.comment-item .author {
    font-weight: bold;
    color: var(--accent);
    font-size: 0.9em;
    margin-bottom: 0.3rem;
}
.comment-item .text {
    font-size: 0.95em;
    color: #cbd5e1;
}

/* Error message styling */
.error-msg {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: -0.5rem;
    display: none;
}

/* Social Icons */
.social-share {
    margin-top: 2rem;
    display: flex;
    gap: 15px;
    justify-content: center;
}
.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}
.social-icon:hover {
    background: var(--primary-green);
    transform: translateY(-3px);
}

/* Inline Title Share */
.title-with-share {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.title-with-share h2 {
    color: var(--accent);
    margin-bottom: 0;
    font-size: 1.4rem;
}

.social-share-inline {
    display: flex;
    gap: 10px;
}

.social-icon-small {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon-small:hover {
    background: var(--primary-green);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1024px) {
    .grid-layout {
        grid-template-columns: 1fr;
    }
    .col-image img {
        max-width: 300px;
        margin: 0 auto;
        border-radius: 12px;
    }
}

/* Image Modal */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}
.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}
.modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}
.modal-close:hover,
.modal-close:focus {
    color: var(--accent);
    text-decoration: none;
    cursor: pointer;
}
