/* Mid-2000s DIY Style CSS Template for FFXIV RP */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: #0f0f1a url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><rect width="20" height="20" fill="%23080810"/><circle cx="10" cy="10" r="1" fill="%23202030"/></svg>') repeat;
    color: #c7c7d1;
    line-height: 1.5;
    min-height: 100vh;
}

.container {
    width: calc(100% - 20px);
    max-width: 1400px;
    min-width: 900px;
    margin: 10px auto;
    background: #1e1e2d;
    border: 4px solid #2d3561;
    color: #c7c7d1;
}

.main-header {
    text-align: center;
    padding: 15px;
    background: #2d3561;
    border-bottom: 3px solid #3d4578;
    color: #a8a8b8;
}

.main-header h1 {
    font-family: 'Roboto', sans-serif;
    font-size: 2em;
    margin-bottom: 5px;
    font-weight: 700;
}

.header-subtitle {
    font-size: 1em;
    font-style: italic;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 3px;
}

.sidebar-nav a {
    display: block;
    padding: 8px 10px;
    color: #7878a8;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dotted #3d4578;
}

.sidebar-nav a:hover {
    background: #3d4578;
    color: #fff;
}

.content-wrapper {
    display: grid;
    grid-template-columns: minmax(180px, 20%) 1fr minmax(200px, 25%);
    gap: clamp(15px, 2vw, 25px);
    padding: clamp(15px, 2vw, 25px);
}

.left-sidebar {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1.5vw, 20px);
}

.right-sidebar {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1.5vw, 20px);
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 1.5vw, 20px);
}

.content-box {
    background: #262b45;
    padding: clamp(12px, 1.5vw, 20px);
    border: 3px solid #2d3561;
    margin-bottom: clamp(8px, 1vw, 15px);
    color: #c7c7d1;
}

.content-box:nth-child(odd) {
    background: #2a2f48;
}

.content-box:nth-child(even) {
    background: #3a2a40;
}

.content-box h2 {
    font-family: 'Roboto', sans-serif;
    font-size: clamp(1.3em, 2vw, 1.6em);
    margin-bottom: clamp(8px, 1vw, 12px);
    text-align: center;
    background: #2d3561;
    color: #fff;
    padding: clamp(4px, 0.5vw, 8px);
    margin: calc(-1 * clamp(12px, 1.5vw, 20px)) calc(-1 * clamp(12px, 1.5vw, 20px)) clamp(8px, 1vw, 12px) calc(-1 * clamp(12px, 1.5vw, 20px));
    font-weight: 600;
}

.character-info {
    display: grid;
    grid-template-columns: minmax(120px, 150px) 1fr;
    gap: clamp(12px, 2vw, 20px);
    align-items: start;
}

.character-portrait {
    width: 100%;
    border: 3px solid #3d4578;
}

.basic-info p {
    margin-bottom: 5px;
    background: #1e1e2d;
    padding: 5px;
    border: 1px solid #2d3561;
    color: #a8a8b8;
}


.widget {
    background: #2a2f48;
    padding: clamp(8px, 1vw, 15px);
    border: 2px solid #2d3561;
    color: #c7c7d1;
}

.widget:nth-child(even) {
    background: #403040;
}

.widget h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.2em;
    margin-bottom: 8px;
    text-align: center;
    background: #2d3561;
    color: #fff;
    padding: 3px;
    margin: -10px -10px 8px -10px;
    font-weight: 500;
}

.widget ul {
    list-style: none;
}

.widget li {
    margin-bottom: 3px;
    padding: 3px;
    border-bottom: 1px dotted #3d4578;
}

.widget a {
    color: #7878a8;
    text-decoration: underline;
}

.widget a:hover {
    color: #9898c8;
}

/* Banners and Buttons Widget */
.banners-widget {
    text-align: center;
}

.banner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-bottom: 10px;
}

.web-banner {
    width: 88px;
    height: 31px;
    border: 1px solid #3d4578;
    display: block;
    margin: 0 auto;
}

.my-banner {
    width: 88px;
    height: 31px;
    border: 2px solid #4d5588;
    display: block;
    margin: 5px auto 0;
}

.banner-note {
    font-size: 0.9em;
    margin: 8px 0 5px;
    color: #a8a8b8;
}

.main-footer {
    text-align: center;
    padding: 10px;
    background: #2d3561;
    color: #a8a8b8;
    border-top: 3px solid #3d4578;
    margin-top: 15px;
}

.footer-links {
    margin-top: 5px;
}

.footer-links a {
    color: #7878a8;
    text-decoration: underline;
    margin: 0 5px;
    font-weight: 600;
}

.footer-links a:hover {
    color: #9898c8;
}

.template-credit {
    font-size: 0.8em;
    margin-top: 8px;
    opacity: 0.8;
}

.template-credit a {
    color: #7878a8;
    text-decoration: underline;
}

.template-credit a:hover {
    color: #9898c8;
}


/* Mobile-only responsive design */
@media (max-width: 768px) {
    .container {
        min-width: unset;
        margin: 5px;
        border-width: 2px;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        padding: 10px;
    }
    
    .left-sidebar {
        order: 1;
    }
    
    .main-content {
        order: 2;
    }
    
    .right-sidebar {
        order: 3;
    }
    
    .character-info {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .main-header h1 {
        font-size: 1.5em;
    }
    
    .banner-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Simple scrollbar */
::-webkit-scrollbar {
    width: 15px;
}

::-webkit-scrollbar-track {
    background: #1e1e2d;
    border: 1px solid #2d3561;
}

::-webkit-scrollbar-thumb {
    background: #3d4578;
    border: 1px solid #4d5588;
}

::-webkit-scrollbar-thumb:hover {
    background: #4d5588;
}

/* Marquee text effect for extra 2000s nostalgia */
.marquee {
    background: #232940;
    color: #b8b8c8;
    padding: 5px;
    white-space: nowrap;
    overflow: hidden;
    border: 2px solid #2d3561;
    margin: 10px 0;
}

.marquee p {
    display: inline-block;
    animation: scroll-left 15s linear infinite;
}

@keyframes scroll-left {
    0% { transform: translate3d(100%, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.gallery-item {
    text-align: center;
}

.gallery-item img {
    width: 100%;
    max-width: 300px;
    border: 2px solid #3d4578;
    margin-bottom: 8px;
}

.gallery-caption {
    font-size: 0.9em;
    color: #a8a8b8;
    margin: 0;
}

.gallery-caption a {
    color: #7878a8;
    text-decoration: underline;
}

.gallery-caption a:hover {
    color: #9898c8;
}

/* Links Page Styles */
.links-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.link-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 10px;
    background: rgba(45, 53, 97, 0.2);
    border: 1px solid #3d4578;
}

.friend-button {
    width: 88px;
    height: 31px;
    border: 1px solid #3d4578;
    flex-shrink: 0;
}

.link-info h4 {
    margin: 0 0 5px 0;
    font-family: 'Roboto', sans-serif;
    font-size: 1.1em;
}

.link-info h4 a {
    color: #9898c8;
    text-decoration: none;
}

.link-info h4 a:hover {
    text-decoration: underline;
}

.link-info p {
    margin: 3px 0;
    font-size: 0.9em;
}

.resource-links {
    margin-top: 15px;
}

.resource-category {
    margin-bottom: 20px;
}

.resource-category h4 {
    font-family: 'Roboto', sans-serif;
    color: #b8b8c8;
    margin-bottom: 8px;
    border-bottom: 1px dotted #3d4578;
    padding-bottom: 3px;
}

.resource-category ul {
    list-style: none;
    margin-left: 0;
}

.resource-category li {
    margin-bottom: 5px;
    padding: 3px 0;
}

.resource-category a {
    color: #7878a8;
    text-decoration: underline;
    font-weight: 600;
}

.resource-category a:hover {
    color: #9898c8;
}

.cool-sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.site-item {
    text-align: center;
    padding: 10px;
    background: rgba(45, 53, 97, 0.2);
    border: 1px solid #3d4578;
}

.site-button {
    width: 88px;
    height: 31px;
    border: 1px solid #3d4578;
    margin-bottom: 8px;
}

.site-item p {
    margin: 0;
    font-size: 0.9em;
}

.site-item a {
    color: #9898c8;
    text-decoration: none;
    font-weight: 600;
}

.site-item a:hover {
    text-decoration: underline;
}