/* Aesir Reborn MUD - Main Stylesheet */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
    gap: 0;
}

/* Navigation Sidebar */
.sidebar {
    background: linear-gradient(180deg, #0f0f23 0%, #1a1a2e 100%);
    padding: 2rem 1rem;
    border-right: 2px solid #2d4a6b;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.nav-menu {
    list-style: none;
}

.nav-item {
    margin-bottom: 1rem;
}

.nav-link {
    display: block;
    color: #ffffff;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid transparent;
}

.nav-link:hover {
    background: linear-gradient(135deg, #2d4a6b, #3d5a8b);
    transform: translateX(5px);
    border-color: #4a90e2;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.nav-link.active {
    background: linear-gradient(135deg, #4a90e2, #5ba0f2);
    border-color: #4a90e2;
}

/* Main Content */
.main-content {
    background: transparent; /* let body gradient show through */
    color: #333;
    padding: 2rem;
    overflow-y: auto;
}

/* Page Headers */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 2.5rem;
    color: #2d4a6b;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Home Page Specific */
.hero-section {
    text-align: center;
    margin-bottom: 3rem;
}

.hero-banner {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;

    /* remove these */
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    /* just in case */
}

.castle-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.server-info {
    background: linear-gradient(135deg, #2d4a6b, #3d5a8b);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.server-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.newsletter-section {
    background: linear-gradient(135deg, #4a90e2, #5ba0f2);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.newsletter-section a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.newsletter-section a:hover {
    text-decoration: underline;
}

.banner-support {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.banner-images {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.banner-images img {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Areas Page Specific */
.area-gallery {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.area-image {
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid #ddd;
}

.area-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.areas-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.area-column {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.area-list {
    list-style: none;
}

.area-item {
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.area-item:hover {
    background: rgba(74, 144, 226, 0.1);
}

.area-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4a004a;
    text-decoration: none;
}

.area-name:hover {
    color: #6a005a;
}

.area-level {
    color: #04424e;
    font-size: 0.9rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

.area-description {
    margin-left: 0.5rem;
}

.area-description a {
    color: #4a90e2;
    text-decoration: none;
    font-size: 0.8rem;
    font-style: italic;
}

.area-description a:hover {
    text-decoration: underline;
}

.coming-soon {
    color: #ff0000;
    font-weight: bold;
    margin-left: 0.25rem;
}

.legend {
    background: linear-gradient(135deg, #4a90e2, #5ba0f2);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}

/* Footer Sections */
.footer-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #ddd;
    text-align: center;
    color: #666;
}

.footer-notes {
    background: rgba(255, 255, 255, 0.8);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    color: #666;
    margin-top: 2rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
        padding: 1rem;
    }

    .nav-menu {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.5rem;
    }

    .nav-item {
        margin-bottom: 0;
    }

    .nav-link {
        padding: 0.5rem;
        text-align: center;
        font-size: 0.9rem;
    }

    .nav-link:hover {
        transform: none;
    }

    .main-content {
        padding: 1rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .server-info h3 {
        font-size: 1.2rem;
        word-break: break-all;
    }

    .banner-images {
        flex-direction: column;
        align-items: center;
    }

    .areas-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .area-gallery {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .sidebar {
        padding: 0.5rem;
    }

    .nav-menu {
        grid-template-columns: 1fr 1fr;
    }

    .main-content {
        padding: 0.5rem;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .area-column {
        padding: 1rem;
    }
}

/* Class-specific styles */
.class-subnav {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.class-subnav h4 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-align: center;
}

.class-list {
    list-style: none;
}

.class-list li {
    margin-bottom: 0.25rem;
}

.class-list a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    transition: background 0.3s ease;
    text-align: center;
}

.class-list a:hover {
    background: rgba(74, 144, 226, 0.3);
}

.class-gallery {
    text-align: center;
    margin: 2rem 0;
}

.class-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.class-intro {
    max-width: 800px;
    margin: 3rem auto;
}

.intro-card {
    background: linear-gradient(135deg, #2d4a6b, #3d5a8b);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    font-size: 1.1rem;
    line-height: 1.7;
}

.intro-card p {
    margin-bottom: 1.5rem;
}

.intro-card p:last-child {
    margin-bottom: 0;
}

.class-overview {
    max-width: 1000px;
    margin: 3rem auto;
}

.class-overview h2 {
    text-align: center;
    color: #2d4a6b;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.class-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.class-card:hover {
    transform: translateY(-5px);
}

.class-card.combat {
    border-left: 4px solid #e74c3c;
}

.class-card.magic {
    border-left: 4px solid #9b59b6;
}

.class-card.specialized {
    border-left: 4px solid #27ae60;
}

.class-card h3 {
    color: #2d4a6b;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    text-align: center;
}

.class-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.class-item {
    display: block;
    text-decoration: none;
    padding: 1rem;
    background: rgba(74, 144, 226, 0.05);
    border-radius: 8px;
    border-left: 3px solid #4a90e2;
    transition: all 0.3s ease;
}

.class-item:hover {
    background: rgba(74, 144, 226, 0.1);
    transform: translateX(5px);
}

.class-item strong {
    display: block;
    color: #2d4a6b;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.class-item span {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

.getting-started {
    max-width: 800px;
    margin: 3rem auto;
}

/* Mobile responsive for classes */
@media (max-width: 768px) {
    .class-subnav {
        margin: 0.5rem 0;
        padding: 0.75rem;
    }
    
    .class-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .class-card {
        padding: 1.5rem;
    }
    
    .intro-card {
        font-size: 1rem;
        padding: 1.5rem;
    }
}

/* Clan-specific styles */
.clan-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.clan-card {
    background: linear-gradient(135deg, #4a90e2, #5ba0f2);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.clan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.clan-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.clan-card p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.clan-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.clan-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.clan-info p:last-child {
    margin-bottom: 0;
}

/* Info Sections - for simple content pages like clans */
.info-section {
    max-width: 800px;
    margin: 0 auto;
}

.info-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.info-card h2 {
    color: #2d4a6b;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.info-card p {
    margin-bottom: 1rem;
    color: #333;
    line-height: 1.6;
}

.info-card ul {
    margin-left: 1.5rem;
    color: #333;
}

.info-card li {
    margin-bottom: 0.5rem;
}

.info-card a {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 500;
}

.info-card a:hover {
    text-decoration: underline;
    color: #357abd;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}