/* Guides Page Specific Styles */

/* Root variables for guides page */
:root {
    --guide-card-border: rgba(255, 255, 255, 0.1);
    --beginner-color: #4CAF50;
    --intermediate-color: #2196F3;
    --advanced-color: #F44336;
}

/* Guides Section Styling - updated to match site card styling */
.guides-section {
    border-radius: var(--card-radius);
    border: 1px solid var(--card-border);
    margin-bottom: var(--card-margin);
    box-shadow: 0 2px 4px var(--card-shadow);
    backdrop-filter: blur(10px);
    /* Remove explicit background-color to use the global card background */
    padding: var(--spacing-xl);
    scroll-margin-top: 120px;
}

/* Guides Grid */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

/* Guide Card Styling - updated to match main site cards */
.guide-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);
    overflow: hidden;
    transition: var(--card-transition);
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px var(--card-shadow);
}

.guide-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 16px var(--card-hover-shadow) !important;
    border-color: rgba(var(--circle-primary-color-rgb, 212, 175, 55), 0.3);
    background-color: rgba(var(--circle-primary-color-rgb, 212, 175, 55), 0.01) !important;
}

.guide-header {
    padding: var(--spacing-md);
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.guide-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: var(--guide-radius-sm);
    padding: 4px;
}

.guide-header h4 {
    margin: 0;
    color: var(--circle-primary-color, #D4AF37);
    font-size: 1.2em;
}

.guide-preview {
    padding: var(--spacing-md);
    flex-grow: 1;
}

.guide-preview p {
    margin: 0 0 var(--spacing-md) 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95em;
    line-height: 1.5;
}

.guide-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.difficulty {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
}

.difficulty.beginner {
    background-color: rgba(76, 175, 80, 0.2);
    color: var(--beginner-color);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.difficulty.intermediate {
    background-color: rgba(33, 150, 243, 0.2);
    color: var(--intermediate-color);
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.difficulty.advanced {
    background-color: rgba(244, 67, 54, 0.2);
    color: var(--advanced-color);
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.time {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.7);
}

.time i {
    margin-right: 4px;
}

.guide-actions {
    padding: var(--spacing-md);
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
}

.guide-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--circle-primary-color, #D4AF37);
    color: #000;
    text-decoration: none;
    border-radius: var(--guide-radius-sm);
    font-weight: bold;
    transition: all 0.2s ease;
    text-align: center;
    min-width: 100px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    border: none;
}

.guide-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    opacity: 0.9;
}

/* Guide Request Section */
.guide-request {
    text-align: center;
}

.request-button {
    display: inline-block;
    margin-top: var(--spacing-md);
    padding: 10px 20px;
    background-color: var(--circle-primary-color, #D4AF37);
    color: #000;
    text-decoration: none;
    border-radius: var(--guide-radius-md);
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: none;
}

.request-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .guides-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .guide-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
    
    .section-header h3 {
        font-size: 1.4em;
    }
    
    .section-header p {
        font-size: 1em;
    }
}

@media (max-width: 576px) {
    .guides-grid {
        grid-template-columns: 1fr;
    }
    
    .guide-header {
        flex-direction: column;
        text-align: center;
    }
    
    .guide-logo {
        width: 60px;
        height: 60px;
    }
    
    .guide-meta {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Fix for keyboard navigation focus styles */
.guides-section:focus,
.guide-card:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Keep accessible focus styles for keyboard navigation */
.guides-section:focus-visible,
.guide-card:focus-visible {
    box-shadow: 0 0 0 2px var(--guide-card-border) !important;
    border-color: var(--circle-primary-color, #D4AF37) !important;
} 