/* GPU Buyers Guide 2025 Styles */

* {
    box-sizing: border-box;
}

body {
    background-color: #000;
    color: #00ff00;
    font-family: "Courier New", monospace;
    padding: 20px;
    margin: 0;
    overflow-y: auto;
}

.container {
    max-width: 1400px;
    margin: auto;
    min-height: 100vh;
}

header {
    text-align: center;
    color: #00ff00;
    margin-bottom: 20px;
}

h1 {
    margin: 0;
    font-size: 2.5em;
}

.subtitle {
    font-size: 1.2em;
    color: #00cc00;
    margin-top: 10px;
    font-style: italic;
}

.breadcrumb {
    font-size: 0.8em;
    color: #00aa00;
    margin-bottom: 20px;
    padding: 10px 0;
    text-align: center;
}

.breadcrumb a {
    color: #00ff00;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #004400;
}

.crt-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ff00, transparent);
    margin: 20px 0;
}

.flavor-text {
    color: #00ff00;
    font-family: "Courier New", monospace;
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    font-style: italic;
    font-weight: bold;
    opacity: 0.9;
}

.adventure-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    margin-top: 30px;
}

.adventure-item {
    position: relative;
    border: 2px solid #00ff00;
    transition: transform 0.3s ease-in-out, opacity 0.3s, border-color 0.3s;
    cursor: pointer;
    pointer-events: auto;
    background: #001100;
    overflow: hidden;
}

.adventure-item:hover,
.adventure-item:focus {
    transform: scale(1.05);
    opacity: 0.9;
    border-color: #00cc00;
    outline: 2px solid #00ff00;
    outline-offset: 2px;
}

.adventure-item.featured {
    grid-column: span 2;
    grid-row: span 2;
}

.adventure-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.adventure-item.featured img {
    height: 300px;
}

.adventure-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.85) 70%, transparent 100%);
    backdrop-filter: blur(4px);
    padding: 15px;
    color: #00ff00;
}

.adventure-title {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 5px;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.9), 0 2px 4px rgba(0, 0, 0, 1);
}

.adventure-item.featured .adventure-title {
    font-size: 1.5em;
}

.adventure-description {
    font-size: 0.9em;
    color: #00cc00;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.9), 0 1px 3px rgba(0, 0, 0, 1);
}

.adventure-item.featured .adventure-description {
    font-size: 1.1em;
}

.featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #00ff00;
    color: #000;
    padding: 5px 10px;
    font-weight: bold;
    font-size: 0.8em;
    z-index: 5;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    overflow-y: auto;
}

.modal-content {
    position: relative;
    margin: 20px auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    background-color: #000;
    border: 2px solid #00ff00;
    touch-action: pan-y;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.modal-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
}

.modal-nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-button {
    background-color: transparent;
    color: #00ff00;
    border: 2px solid #00ff00;
    padding: 5px 12px;
    cursor: pointer;
    font-family: "Courier New", monospace;
    font-size: 0.9em;
    transition: all 0.2s ease;
}

.nav-button:hover {
    background-color: #001100;
    border-color: #00cc00;
}

.adventure-counter {
    color: #00ff00;
    font-family: "Courier New", monospace;
    font-size: 0.9em;
    min-width: 60px;
    text-align: center;
}

.modal-top {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.modal-image {
    width: 40%;
    max-width: 500px;
    height: auto;
    border: 4px solid #00ff00;
}

.modal-intro-text {
    width: 60%;
    font-family: "Courier New", monospace;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    max-height: 300px;
    overflow: hidden;
    border: 2px solid #00ff00;
    padding: 20px;
    color: #00ff00;
}

.modal-text {
    width: 100%;
    max-width: 100%;
    flex-grow: 1;
    overflow-y: scroll;
    overflow-x: hidden;
    font-family: "Courier New", monospace;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    border: 2px solid #00ff00;
    padding: 20px;
    border-radius: 5px;
    color: #00ff00;
}

.modal-text::-webkit-scrollbar {
    width: 12px;
}

.modal-text::-webkit-scrollbar-track {
    background: #000;
}

.modal-text::-webkit-scrollbar-thumb {
    background: #00ff00;
    border: 2px solid #000;
}

.modal-text::-webkit-scrollbar-thumb:hover {
    background: #00cc00;
}

.modal[tabindex="0"]:focus {
    outline: none;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    body {
        padding: 8px;
    }
    .container {
        padding: 5px;
    }
    .adventure-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .adventure-item.featured {
        grid-column: span 1;
        grid-row: span 1;
    }
    .adventure-item img {
        height: 150px;
    }
    .adventure-item.featured img {
        height: 200px;
    }
    .modal {
        padding-top: 10px;
    }
    .modal-content {
        margin: 2% auto;
        width: 96%;
        max-height: 95vh;
        padding: 8px;
    }
    .modal-top {
        flex-direction: column;
    }
    .modal-image, .modal-intro-text {
        width: 100%;
        max-width: none;
    }
    .modal-intro-text {
        max-height: 200px;
        font-size: 0.9em;
        padding: 8px;
    }
    .modal-text {
        font-size: 0.8em;
        padding: 10px;
        max-height: 60vh;
    }
    .modal-header-bar {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    .modal-nav-controls {
        justify-content: space-between;
        gap: 8px;
    }
    .nav-button {
        font-size: 0.75em;
        padding: 4px 8px;
    }
    .adventure-counter {
        font-size: 0.8em;
    }
    h1 {
        font-size: 1.8em;
    }
    .subtitle {
        font-size: 1em;
    }
}
