/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(to bottom, #240750, #1a2e48);
    color: #e0e0e0;
    margin: 0;
    overflow-x: hidden;
}

/* ===== SIDEBAR NAVIGATION ===== */
.sidebar {
    width: 260px;
    background: linear-gradient(to bottom, #35316E, #282455);
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.logo-container {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    position: relative;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.logo-subtitle {
    font-size: 14px;
    color: #577B8D;
    margin-top: 5px;
}

.nav-menu {
    padding: 20px 0;
    height: calc(100vh - 140px);
    overflow-y: auto;
}

.nav-menu::-webkit-scrollbar {
    width: 4px;
}

.nav-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.nav-menu::-webkit-scrollbar-thumb {
    background: #577B8D;
    border-radius: 2px;
}

.nav-item {
    list-style: none;
    margin: 8px 0;
    padding: 0 15px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 8px;
    text-decoration: none;
    color: #e0e0e0;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    background-color: rgba(87, 166, 161, 0.2);
    color: white;
}

.nav-link.active {
    background-color: #57A6A1;
    color: white;
    box-shadow: 0 4px 12px rgba(87, 166, 161, 0.3);
}

.nav-icon {
    margin-right: 12px;
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* ===== SIDEBAR TOGGLE BUTTON ===== */
.sidebar-toggle {
    position: absolute;
    top: 20px;
    right: 15px;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    background: #57A6A1;
    border: 2px solid white;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 1001;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: #4a8f8a;
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(0,0,0,0.4);
}

.toggle-icon {
    font-size: 16px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.sidebar-toggle {
    animation: pulse 2s ease-in-out 3;
}

/* ===== COLLAPSED SIDEBAR STATE ===== */
.sidebar.collapsed {
    width: 70px;
}

.sidebar.collapsed .logo-text,
.sidebar.collapsed .logo-subtitle,
.sidebar.collapsed .nav-text {
    display: none;
}

.sidebar.collapsed .logo-container {
    padding: 20px 10px;
}

.sidebar.collapsed .nav-item {
    display: flex;
    justify-content: center;
    padding: 0 10px;
}

.sidebar.collapsed .nav-link {
    padding: 15px;
    justify-content: center;
}

.sidebar.collapsed .nav-icon {
    margin-right: 0;
    font-size: 20px;
}

.sidebar.collapsed .toggle-icon {
    transform: rotate(180deg);
}

.sidebar.collapsed .sidebar-toggle {
    right: 10px;
}

.sidebar.collapsed ~ .main-content,
.sidebar.collapsed ~ footer {
    margin-left: 70px;
}

/* ===== MAIN CONTENT AREA ===== */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 30px;
    background: linear-gradient(to bottom, #1d0b38, #23064f);
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.content-card {
    background: rgba(52, 76, 100, 0.6);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 25px;
    border: 1px solid rgba(87, 123, 141, 0.3);
    backdrop-filter: blur(5px);
    /* Removed max-width to make cards full width */
}

.content-card h2 {
    color: #57A6A1;
    margin-bottom: 15px;
}

.content-card p {
    line-height: 1.7;
    color: #d0d0d0;
}

.main-content a {
    color: #57A6A1;
    text-decoration: none;
}

.main-content a:hover {
    color: #4a8f8a;
    text-decoration: underline;
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(to right, #240750, #344C64);
    color: white;
    text-align: center;
    padding: 15px;
    width: 100%;
    border-top: 2px solid #57A6A1;
    margin-top: auto;
}

footer p {
    margin: 2px 0;
    font-size: 14px;
}

footer a {
    color: #57A6A1;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(to right, rgba(52, 76, 100, 0.7), rgba(36, 7, 80, 0.7));
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    text-align: center;
    border: 1px solid rgba(87, 123, 141, 0.3);
    margin-left: auto;
    margin-right: auto;
}

.hero-content h1 {
    font-size: 2.5rem;
    color: #57A6A1;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #a8c7d8;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1rem;
    color: #d0d0d0;
    line-height: 1.6;
}

/* ===== CREATOR CARD ===== */
.creator-card {
    background: rgba(87, 166, 161, 0.1);
    border-left: 4px solid #57A6A1;
    /* Removed max-width to make it full width */
}

.creator-info {
    flex: 1;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: rgba(36, 7, 80, 0.4);
    border-radius: 6px;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(87, 123, 141, 0.3);
}

.social-link:hover {
    background: rgba(87, 166, 161, 0.2);
    transform: translateY(-2px);
    color: #57A6A1;
}

.social-icon {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* ===== UPDATES SECTION ===== */
.updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.update-card-square {
    background: rgba(36, 7, 80, 0.4);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(87, 123, 141, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 300px;
    margin: 0 auto;
}

.update-card-square:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.update-card-square .update-card-image {
    height: 160px;
    overflow: hidden;
}

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

.update-card-square:hover .update-card-image img {
    transform: scale(1.05);
}

.update-card-square .update-card-content {
    padding: 20px;
    text-align: center;
}

.update-card-square .update-card-content h3 {
    color: #57A6A1;
    margin-bottom: 15px;
    font-size: 18px;
}

.update-card-square .update-card-link {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(87, 166, 161, 0.2);
    border-radius: 6px;
    color: #57A6A1;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(87, 166, 161, 0.3);
}

.update-card-square .update-card-link:hover {
    background: rgba(87, 166, 161, 0.3);
    text-decoration: none;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .sidebar {
        width: 70px;
    }
    
    .logo-text, 
    .logo-subtitle, 
    .nav-text {
        display: none;
    }
    
    .logo-container {
        padding: 20px 10px;
    }
    
    .nav-item {
        display: flex;
        justify-content: center;
        padding: 0 10px;
    }
    
    .nav-link {
        padding: 15px;
        justify-content: center;
    }
    
    .nav-icon {
        margin-right: 0;
        font-size: 20px;
    }
    
    .main-content {
        margin-left: 70px;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .nav-menu {
        display: flex;
        overflow-x: auto;
        padding: 10px 0;
        height: auto;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    .nav-menu::-webkit-scrollbar {
        display: none;
    }
    
    .nav-item {
        margin: 0 5px;
        flex-shrink: 0;
    }
    
    .logo-text, 
    .logo-subtitle, 
    .nav-text {
        display: inline;
    }
    
    .sidebar-toggle {
        display: none;
    }
    
    .main-content,
    .sidebar.collapsed ~ .main-content,
    .sidebar.collapsed ~ footer {
        margin-left: 0;
        padding: 15px;
    }
    
    .content-card {
        padding: 15px;
    }
    
    .hero-section {
        padding: 25px 20px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .social-links {
        grid-template-columns: 1fr;
    }
    
    .updates-grid {
        grid-template-columns: 1fr;
    }
    
    .update-card-square {
        max-width: 100%;
    }
    
    .update-card-square .update-card-image {
        height: 140px;
    }
}

@media (max-width: 576px) {
    .content-card h2 {
        font-size: 18px;
    }
    
    .content-card p {
        font-size: 14px;
    }
    
    footer p {
        font-size: 12px;
    }
    
    .update-card-square .update-card-image {
        height: 120px;
    }
    
    .update-card-square .update-card-content {
        padding: 15px;
    }
    
    .update-card-square .update-card-content h3 {
        font-size: 16px;
    }
}