/* Flamepass Guides - Enhanced Modal System
 * Updated version with brighter orange and removed light/dark mode
 */

/* Original Modal Styles - Preserved for compatibility */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    background-color: rgba(30, 30, 30, 0.95);
    margin: 50px auto;
    width: 85%;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    color: white;
    border: 1px solid rgba(85, 85, 255, 0.5);
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    background-color: rgba(50, 50, 50, 0.95);
    padding: 15px 20px;
    border-bottom: 1px solid rgba(85, 85, 255, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-title {
    color: white;
    /* Changed to white per request */
    font-size: 1.5rem;
    margin: 0;
    font-weight: bold;
    /* Bold per request */
}

.close-btn {
    font-size: 28px;
    color: #aaa;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.close-btn:hover {
    color: white;
}

.modal-body {
    padding: 20px;
}

/* Guide content styling */
.guide-content h2 {
    color: #ff7a3c;
    /* Brighter orange */
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgb(255 85 85 / 30%);
    padding-bottom: 5px;
}

.guide-content h3 {
    color: #ff7a3c;
    /* Brighter orange */
    margin-top: 20px;
    margin-bottom: 10px;
}

.guide-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.guide-content ul,
.guide-content ol {
    margin-bottom: 15px;
    padding-left: 25px;
}

.guide-content li {
    margin-bottom: 10px;
}

.guide-content a {
    color: #ff7a3c;
    /* Brighter orange */
    text-decoration: none;
}

.guide-content a:hover {
    text-decoration: underline;
}

.guide-content code {
    background-color: rgba(50, 50, 50, 0.7);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

.guide-content pre {
    background-color: rgba(50, 50, 50, 0.7);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: monospace;
    margin-bottom: 15px;
}

/* Table styling */
.guide-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.guide-content th,
.guide-content td {
    padding: 10px;
    border: 1px solid rgb(255 85 85 / 30%);
}

.guide-content th {
    background-color: rgba(50, 50, 50, 0.7);
    color: #ff7a3c;
    /* Brighter orange */
}

.guide-content tr:nth-child(odd) {
    background-color: rgba(40, 40, 40, 0.7);
}

/* Custom scrollbar */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(30, 30, 30, 0.5);
}

.modal-content::-webkit-scrollbar-thumb {
    background: #ff7a3c;
    /* Brighter orange */
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #4444cc;
}

/* Cards grid layout */
.guides-container {
    display: grid;
    gap: 25px;
    padding: 20px;
}

/* Guide-specific styles */
.guide-card {
    background-color: rgba(37, 37, 37, 0.7);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    position: relative;
    height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    border: 1px solid rgb(255 85 85 / 30%);
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(85, 85, 255, 0.7);
}

.guide-icon {
    font-size: 40px !important;
    color: #ff7a3c;
    /* Brighter orange */
    margin-bottom: 15px;
}

.guide-title {
    font-size: 1.2rem;
    color: white;
    font-weight: 500;
}

/* ================================================================
 * ENHANCED MODAL STYLES - NEW IMPROVEMENTS
 * ================================================================ */

/* Enhanced Modal Animation */
.modal.enhanced {
    display: none;
    visibility: hidden;
    /* Start invisible for animation */
    position: fixed;
    top: 0;
    left: 0;
    max-width: 100% !important;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    z-index: 2000;
    overflow-y: auto;
    align-items: center;
    justify-content: center;
    transition: background-color 0.4s ease, visibility 0.4s ease;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, -webkit-backdrop-filter 0.4s ease, visibility 0s linear 0.4s;
}

.modal.enhanced.active {
    visibility: visible;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, -webkit-backdrop-filter 0.4s ease, visibility 0s;
}

.modal-content.enhanced {
    background-color: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(5px);
    margin: 20px auto;
    width: 90%;
    max-width: 900px;
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 122, 60, 0.2);
    /* Brighter orange */
    position: relative;
    color: white;
    border: 1px solid rgba(255, 122, 60, 0.3);
    /* Brighter orange */
    max-height: 85vh;
    overflow-y: auto;
    opacity: 0;
    transform: scale(0.9);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1),
        opacity 0.5s cubic-bezier(0.19, 1, 0.22, 1),
        box-shadow 0.5s ease;
}

.modal.active .modal-content.enhanced {
    opacity: 1;
    transform: scale(1);
}

.modal-content.enhanced:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5), 0 0 35px rgba(255, 122, 60, 0.3);
    /* Brighter orange */
}

/* Improved Modal Header */
.modal-header.enhanced {
    background: linear-gradient(135deg, rgba(60, 60, 60, 0.95) 0%, rgba(40, 40, 40, 0.95) 100%);
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 122, 60, 0.4);
    /* Brighter orange */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.modal-title.enhanced {
    color: white;
    /* Changed to white per request */
    font-size: 1.8rem;
    margin: 0;
    font-weight: bold;
    /* Bold per request */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
}

.modal-title.enhanced .title-icon {
    margin-right: 15px;
    font-size: 1.8rem;
    color: white;
    /* Changed to white per request */
    background: rgba(255, 122, 60, 0.15);
    /* Brighter orange */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn.enhanced {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #aaa;
    background: rgba(60, 60, 60, 0.6);
    border: 1px solid rgba(120, 120, 120, 0.3);
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.close-btn.enhanced:hover {
    color: white;
    background: rgba(255, 122, 60, 0.8);
    /* Brighter orange */
    transform: rotate(90deg);
    border-color: transparent;
}

/* Enhanced Modal Body */
.modal-body.enhanced {
    padding: 30px;
    position: relative;
    overflow: hidden;
}

/* Progress Bar for Reading */
.reading-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(60, 60, 60, 0.3);
    z-index: 5;
}

.reading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff7a3c, #ff7a3c 70%, rgba(85, 85, 255, 0.8));
    /* Brighter orange */
    width: 0%;
    transition: width 0.2s ease-out;
}

/* Enhanced Guide Content */
.guide-content.enhanced h2 {
    color: #ff7a3c;
    /* Brighter orange */
    margin-top: 35px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 122, 60, 0.3);
    /* Brighter orange */
    padding-bottom: 10px;
    font-size: 1.7rem;
    position: relative;
}

.guide-content.enhanced h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: #ff7a3c;
    /* Brighter orange */
}

.guide-content.enhanced h3 {
    color: #ff7a3c;
    /* Brighter orange */
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
}

.guide-content.enhanced h3::before {
    content: '✦';
    margin-right: 10px;
    font-size: 1rem;
    color: rgba(255, 122, 60, 0.7);
    /* Brighter orange */
}

.guide-content.enhanced p {
    margin-bottom: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.guide-content.enhanced ul,
.guide-content.enhanced ol {
    margin-bottom: 20px;
    padding-left: 28px;
}

.guide-content.enhanced ul li {
    margin-bottom: 12px;
    position: relative;
    list-style-type: none;
}

.guide-content.enhanced ul li::before {
    content: '•';
    color: #ff7a3c;
    /* Brighter orange */
    font-weight: bold;
    font-size: 1.2em;
    position: absolute;
    left: -20px;
    top: -1px;
}

.guide-content.enhanced ol li {
    margin-bottom: 12px;
}

.guide-content.enhanced a {
    color: #ff7a3c;
    /* Brighter orange */
    text-decoration: none;
    padding-bottom: 1px;
    border-bottom: 1px dotted rgba(255, 122, 60, 0.5);
    /* Brighter orange */
    transition: all 0.2s ease;
}

.guide-content.enhanced a:hover {
    color: #ffaa7f;
    /* Even brighter orange for hover */
    border-bottom: 1px solid rgba(255, 122, 60, 0.8);
    /* Brighter orange */
    text-decoration: none;
}

/* Blockquote styling */
.guide-content.enhanced blockquote {
    border-left: 4px solid #ff7a3c;
    /* Brighter orange */
    background: rgba(255, 122, 60, 0.1);
    /* Brighter orange */
    margin: 20px 0;
    padding: 15px 20px;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

/* Warning and note boxes */
.guide-content.enhanced .warning-box {
    background-color: rgba(255, 100, 100, 0.1);
    border-left: 4px solid #ff5555;
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
    position: relative;
}

.guide-content.enhanced .warning-box h3 {
    color: #ff5555;
    margin-top: 0;
    display: flex;
    align-items: center;
}

.guide-content.enhanced .warning-box h3::before {
    content: '⚠️';
    margin-right: 10px;
    font-size: 1.2rem;
}

.guide-content.enhanced .note-box {
    background-color: rgba(85, 85, 255, 0.1);
    border-left: 4px solid rgba(85, 85, 255, 0.8);
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}

.guide-content.enhanced .note-box h3 {
    color: rgba(85, 85, 255, 0.9);
    margin-top: 0;
    display: flex;
    align-items: center;
}

.guide-content.enhanced .note-box h3::before {
    content: 'ℹ️';
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Code block styling */
.guide-content.enhanced code {
    background-color: rgba(40, 40, 40, 0.8);
    color: #ff9a5f;
    /* Brighter orange */
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
}

.guide-content.enhanced pre {
    background-color: rgba(30, 30, 30, 0.9);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Consolas', 'Monaco', monospace;
    margin: 20px 0;
    border: 1px solid rgba(60, 60, 60, 0.8);
    position: relative;
}

.guide-content.enhanced pre::before {
    content: 'Code';
    position: absolute;
    top: -10px;
    left: 15px;
    background: #ff7a3c;
    /* Brighter orange */
    color: white;
    padding: 2px 10px;
    font-size: 0.7rem;
    border-radius: 3px;
    text-transform: uppercase;
    font-weight: bold;
    font-family: 'Arial', sans-serif;
}

/* Enhanced Table styling */
.guide-content.enhanced table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 25px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.guide-content.enhanced th {
    background: linear-gradient(135deg, rgba(255, 122, 60, 0.9) 0%, rgba(235, 102, 40, 0.9) 100%);
    /* Brighter orange */
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85em;
    padding: 15px;
    border: none;
}

.guide-content.enhanced td {
    padding: 12px 15px;
    border: none;
    border-bottom: 1px solid rgba(255, 122, 60, 0.15);
    /* Brighter orange */
    transition: background-color 0.2s ease;
}

.guide-content.enhanced tr:last-child td {
    border-bottom: none;
}

.guide-content.enhanced tr:nth-child(odd) {
    background-color: rgba(45, 45, 45, 0.7);
}

.guide-content.enhanced tr:nth-child(even) {
    background-color: rgba(35, 35, 35, 0.7);
}

.guide-content.enhanced tr:hover td {
    background-color: rgba(255, 122, 60, 0.1);
    /* Brighter orange */
}

/* Custom Scrollbar for Enhanced Modal */
.modal-content.enhanced::-webkit-scrollbar {
    width: 10px;
}

.modal-content.enhanced::-webkit-scrollbar-track {
    background: rgba(25, 25, 25, 0.8);
    border-radius: 10px;
}

.modal-content.enhanced::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff7a3c, rgba(85, 85, 255, 0.8));
    /* Brighter orange */
    border-radius: 10px;
    border: 2px solid rgba(25, 25, 25, 0.8);
}

.modal-content.enhanced::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff9a5f, rgba(100, 100, 255, 0.9));
    /* Even brighter orange */
}

/* Modal Footer */
.modal-footer.enhanced {
    display: flex;
    justify-content: center;
    /* Changed from space-between to center since share button is removed */
    align-items: center;
    background: rgba(40, 40, 40, 0.95);
    padding: 15px 25px;
    border-top: 1px solid rgba(255, 122, 60, 0.3);
    /* Brighter orange */
}

.modal-next-prev {
    display: flex;
    gap: 15px;
}

.modal-nav-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(60, 60, 60, 0.6);
    border: none;
    color: #ccc;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.modal-nav-button:hover {
    background: rgba(255, 122, 60, 0.8);
    /* Brighter orange */
    color: white;
}

.modal-nav-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.modal-nav-button.disabled:hover {
    background: rgba(60, 60, 60, 0.6);
    color: #ccc;
}

.modal-nav-button i {
    font-size: 0.8rem;
}

/* Share button removed as requested */

/* Table of Contents */
.guide-toc {
    background: rgba(40, 40, 40, 0.7);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid rgba(255, 122, 60, 0.2);
    /* Brighter orange */
}

.guide-toc-title {
    font-size: 1.1rem;
    color: #ff7a3c;
    /* Brighter orange */
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.guide-toc-title::before {
    content: '≡';
    margin-right: 10px;
    font-size: 1.3rem;
}

.guide-toc-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.guide-toc-item {
    margin-bottom: 8px;
}

.guide-toc-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: block;
    padding: 5px 0;
    transition: all 0.2s ease;
    border-bottom: none !important;
}

.guide-toc-link:hover {
    color: #ff7a3c;
    /* Brighter orange */
    transform: translateX(5px);
    border-bottom: none !important;
}

/* Guide Card Lock Overlay - Premium Content */
.guide-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(30, 30, 30, 0.85) 100%);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 100;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.guide-lock-overlay i {
    font-size: 24px;
    color: #ff7a3c;
    /* Brighter orange */
    margin-right: 10px;
}

.guide-lock-overlay:hover {
    opacity: 1;
}

.guide-lock-text {
    font-size: 16px;
    font-weight: 500;
    color: white;
}

/* Premium badge for guide cards */
.premium-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ff7a3c 0%, #ff9a5f 100%);
    /* Brighter orange */
    color: white;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Image Galleries in Modals */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.gallery-image {
    width: 100%;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.gallery-image:hover {
    transform: scale(1.05);
}

/* Lightbox for images */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    box-sizing: border-box;
}

.lightbox-image {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 122, 60, 0.8);
    /* Brighter orange */
    transform: rotate(90deg);
}

/* Animation effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

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

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Tooltip styling */
.tooltip {
    position: relative;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: max-content;
    max-width: 200px;
    background-color: rgba(25, 25, 25, 0.95);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.85rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 122, 60, 0.3);
    /* Brighter orange */
    pointer-events: none;
}

.tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(25, 25, 25, 0.95) transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Dark mode toggle removed as requested */

/* Content indicators */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 24px;
    animation: bounce 2s infinite;
    z-index: 5;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Guide category tags */
.guide-tag {
    display: inline-block;
    background: rgba(255, 122, 60, 0.2);
    /* Brighter orange */
    color: #ff7a3c;
    /* Brighter orange */
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
    margin-right: 5px;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Print styles */
@media print {
    .modal-content.enhanced {
        box-shadow: none;
        max-height: none;
    }

    .modal-header.enhanced,
    .modal-footer.enhanced,
    .close-btn.enhanced,
    .reading-progress-container,
    .scroll-indicator {
        display: none;
    }

    .guide-content.enhanced {
        color: black;
        background: white;
    }

    .guide-content.enhanced a {
        color: #ff7a3c;
        /* Brighter orange */
        text-decoration: underline;
    }

    .modal {
        position: relative;
        overflow: visible;
        background: white;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-content.enhanced {
        width: 95%;
        margin: 10px auto;
    }

    .modal-title.enhanced {
        font-size: 1.5rem;
    }

    .modal-body.enhanced {
        padding: 20px;
    }

    .modal-footer.enhanced {
        flex-direction: column;
        gap: 15px;
    }

    .guide-toc {
        max-height: 200px;
        overflow-y: auto;
    }
}

/* Mobile specific styles */
@media (max-width: 480px) {
    .modal-title.enhanced {
        font-size: 1.3rem;
    }

    .modal-title.enhanced .title-icon {
        display: none;
    }
}

/* Guide cards enhancement */
.guides-container.enhanced {
    gap: 30px;
    padding: 30px 20px;
}

.guide-card.enhanced {
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.7) 0%, rgba(30, 30, 30, 0.7) 100%);
    height: 180px;
    border: 1px solid rgba(255, 122, 60, 0.3);
    /* Brighter orange */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

/* Line animation for free/accessible guides only */
.guide-card.enhanced.accessible::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ff7a3c, rgba(85, 85, 255, 0.8));
    /* Brighter orange */
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.guide-card.enhanced.accessible:hover::before {
    transform: scaleX(1);
}

.guide-card.enhanced:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 122, 60, 0.2);
    /* Brighter orange */
    border-color: rgba(255, 122, 60, 0.5);
    /* Brighter orange */
}

.guide-icon.enhanced {
    font-size: 46px !important;
    background: linear-gradient(135deg, #ff7a3c, #ff9a5f);
    /* Brighter orange */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(255, 122, 60, 0.3);
    /* Brighter orange */
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}

.guide-card.enhanced:hover .guide-icon.enhanced {
    transform: scale(1.1);
}

.guide-title.enhanced {
    font-size: 1.3rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 10px;
}

.guide-title.enhanced::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background-color: rgba(255, 122, 60, 0.7);
    /* Brighter orange */
    transition: width 0.3s ease;
}

.guide-card.enhanced:hover .guide-title.enhanced::after {
    width: 50px;
}

.guide-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    padding-top: 10px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease, padding-top 0.4s ease;
}

.guide-card.enhanced:hover .guide-description {
    max-height: 60px;
    opacity: 1;
}

/* Additional loading animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ff7a3c;
    /* Brighter orange */
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Guide card badges */
.guide-card-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-end;
}

.guide-card-badge {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.badge-premium {
    background: linear-gradient(135deg, #ff7a3c 0%, #ff9a5f 100%);
    /* Brighter orange */
    color: white;
}

.badge-new {
    background: linear-gradient(135deg, #4444cc 0%, #6666ff 100%);
    color: white;
}

.badge-updated {
    background: linear-gradient(135deg, #44cc44 0%, #66ff66 100%);
    color: #333;
}

/* Media print helpers */
.print-only {
    display: none;
}

@media print {
    .print-only {
        display: block;
    }

    .no-print {
        display: none !important;
    }
}

/* Terms of Service and Privacy Policy specific styles */
.legal-page {
    font-family: 'DM Sans', sans-serif;
    background-color: #1a1a1a;
    color: white;
    line-height: 1.6;
    padding: 0;
    margin: 0;
    min-height: 100vh;
}

.legal-header {
    background: linear-gradient(135deg, rgba(60, 60, 60, 0.95) 0%, rgba(40, 40, 40, 0.95) 100%);
    padding: 30px 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 122, 60, 0.4);
    /* Brighter orange */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.legal-logo {
    display: block;
    width: 100px;
    height: auto;
    margin: 0 auto 15px;
}

.legal-title {
    color: white;
    font-size: 2.5rem;
    margin: 0;
    font-weight: bold;
}

.legal-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin: 10px 0 0;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 20px;
}

.legal-section {
    margin-bottom: 40px;
    background: rgba(35, 35, 35, 0.7);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 122, 60, 0.2);
    /* Brighter orange */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.legal-section h2 {
    color: #ff7a3c;
    /* Brighter orange */
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 122, 60, 0.3);
    /* Brighter orange */
    padding-bottom: 10px;
}

.legal-section h3 {
    color: #ff7a3c;
    /* Brighter orange */
    font-size: 1.4rem;
    margin-top: 25px;
    margin-bottom: 15px;
}

.legal-section p {
    margin-bottom: 15px;
}

.legal-section ul,
.legal-section ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.legal-section li {
    margin-bottom: 10px;
}

.legal-section a {
    color: #ff7a3c;
    /* Brighter orange */
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-section a:hover {
    color: #ff9a5f;
    /* Even brighter orange */
    text-decoration: underline;
}

.legal-footer {
    background: rgba(25, 25, 25, 0.9);
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 122, 60, 0.2);
    /* Brighter orange */
}

.legal-footer p {
    color: rgba(255, 255, 255, 0.5);
    margin: 5px 0;
    font-size: 0.9rem;
}

.legal-footer a {
    color: #ff7a3c;
    /* Brighter orange */
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-footer a:hover {
    color: #ff9a5f;
    /* Even brighter orange */
    text-decoration: underline;
}

.legal-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.legal-nav-button {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 122, 60, 0.8);
    /* Brighter orange */
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.legal-nav-button:hover {
    background: rgba(255, 122, 60, 1);
    /* Brighter orange */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 122, 60, 0.4);
    /* Brighter orange */
}

.legal-last-updated {
    text-align: right;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    font-size: 0.9rem;
    margin-top: 30px;
}