/* Guide Dashboard Styles - Only affects .doc-section and .guide-content */

/* ========================================
   GUIDE GRID - 4 PER ROW
   ======================================== */
.doc-section .guide-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
    width: 100%;
}

/* ========================================
   GUIDE TILES
   ======================================== */
.doc-section .guide-tile {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Top border accent */
.doc-section .guide-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    border-radius: 12px 12px 0 0;
}

.doc-section .guide-tile.free::before {
    background: linear-gradient(90deg, #10B981, #34D399);
}

.doc-section .guide-tile.locked::before {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}

/* Hover effects */
.doc-section .guide-tile:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 40px rgba(74, 144, 217, 0.15);
}

.doc-section .guide-tile.free:hover {
    border-color: #10B981;
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.15);
}

/* Guide tile title */
.doc-section .guide-tile h3 {
    font-size: 1rem;
    color: var(--text-heading);
    line-height: 1.35;
    font-weight: 600;
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Lock icon */
.doc-section .guide-tile .status-icon {
    font-size: 0.9rem;
    margin-top: 8px;
    color: var(--accent-secondary);
}

/* Unlocked State - When password entered */
.doc-section .guide-tile.unlocked {
    border-color: #10B981;
}

.doc-section .guide-tile.unlocked::before {
    background: linear-gradient(90deg, #10B981, #34D399) !important;
}

.doc-section .guide-tile.unlocked .status-icon {
    display: none;
}

.doc-section .guide-tile.unlocked::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #10B981;
    font-size: 1rem;
    margin-top: 8px;
}

/* ========================================
   STRATEGY LIST - ALSO 4 PER ROW
   ======================================== */
.doc-section .strategy-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.doc-section .strategy-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 120px;
}

.doc-section .strategy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 12px 12px 0 0;
}

.doc-section .strategy-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: 0 12px 40px rgba(74, 144, 217, 0.15);
}

.doc-section .strategy-card i:first-child {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 144, 217, 0.1);
    border-radius: 10px;
}

.doc-section .strategy-card h4 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--text-heading);
    line-height: 1.3;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.doc-section .strategy-card .lock-icon {
    color: var(--accent-secondary);
    font-size: 0.9rem;
    margin-top: 6px;
}

/* Strategy Cards Unlocked */
.doc-section .strategy-card.unlocked {
    border-color: #10B981;
}

.doc-section .strategy-card.unlocked::before {
    background: linear-gradient(90deg, #10B981, #34D399) !important;
}

.doc-section .strategy-card.unlocked .lock-icon {
    display: none;
}

.doc-section .strategy-card.unlocked::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #10B981;
    font-size: 0.9rem;
    margin-top: 6px;
}

/* ========================================
   LOCK MODAL POPUP
   ======================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 26, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 36px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-content > i {
    font-size: 3.5rem;
    color: var(--accent-primary);
    margin-bottom: 20px;
    display: block;
}

.modal-content h3 {
    font-size: 1.5rem;
    margin-bottom: 14px;
    color: var(--text-heading);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 1rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Password Input */
.password-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin-bottom: 16px;
    text-align: center;
    letter-spacing: 2px;
    transition: border-color 0.3s ease;
}

.password-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.password-input::placeholder {
    color: var(--text-muted);
    letter-spacing: normal;
}

.password-error {
    color: #ef4444;
    font-size: 0.85rem;
    margin-bottom: 16px;
    display: none;
}

.password-error.show {
    display: block;
}

.modal-divider {
    margin: 20px 0;
    border: none;
    border-top: 1px solid var(--border-color);
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-buttons .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-primary);
}

/* ========================================
   GUIDE CONTENT PAGES
   ======================================== */
.guide-content {
    display: none;
    padding: 120px 0 60px;
    background: var(--bg-primary);
    min-height: 100vh;
}

.guide-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.guide-content .guide-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.guide-content .guide-header .guide-badge {
    display: inline-block;
    margin-bottom: 16px;
    font-size: 0.75rem;
    padding: 6px 14px;
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
    border-radius: 20px;
    font-weight: 600;
}

.guide-content .guide-header h1 {
    font-size: 2.4rem;
    margin-bottom: 12px;
    line-height: 1.2;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.guide-content .guide-meta {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.guide-content .guide-body {
    max-width: 750px;
    margin: 0 auto;
}

.guide-content .guide-body h2 {
    font-size: 1.6rem;
    margin: 36px 0 16px;
    color: var(--text-heading);
    line-height: 1.3;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.guide-content .guide-body h3 {
    font-size: 1.25rem;
    margin: 26px 0 12px;
    color: var(--accent-secondary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.guide-content .guide-body p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 1.02rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.guide-content .guide-body ul, 
.guide-content .guide-body ol {
    margin: 20px 0;
    padding-left: 24px;
}

.guide-content .guide-body li {
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.6;
    font-size: 1rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.guide-content .guide-body strong {
    color: var(--text-primary);
    font-weight: 600;
}

.guide-content .guide-body blockquote {
    border-left: 4px solid var(--accent-primary);
    padding-left: 24px;
    margin: 30px 0;
    font-style: italic;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Table Styles for Guide Content */
.guide-content .guide-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.95rem;
}

.guide-content .guide-body th {
    background: rgba(74, 144, 217, 0.15);
    color: var(--accent-primary);
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
}

.guide-content .guide-body td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.guide-content .guide-body tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

/* Strong/Bold text */
.guide-content .guide-body strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 1200px) {
    .doc-section .guide-grid,
    .doc-section .strategy-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .doc-section .guide-grid,
    .doc-section .strategy-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .doc-section .guide-grid,
    .doc-section .strategy-list {
        grid-template-columns: 1fr;
    }
    
    .guide-content .guide-header h1 {
        font-size: 1.8rem;
    }
    
    .guide-content .guide-body h2 {
        font-size: 1.3rem;
    }
    
    .modal-content {
        padding: 32px 24px;
    }
}
