/**
 * Documentation Page Styles for GlowReviews Plugin
 */

.glowrev-documentation-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.glowrev-documentation-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    margin-bottom: 40px;
}

.glowrev-documentation-title h1 {
    font-size: 2.5em;
    margin: 0 0 10px 0;
    font-weight: 300;
}

.glowrev-documentation-title .glowrev-icon {
    font-size: 1.2em;
    margin-right: 10px;
}

.glowrev-documentation-subtitle {
    font-size: 1.2em;
    margin: 0;
    opacity: 0.9;
}

.glowrev-documentation-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    align-items: start;
}

/* Navigation */
.glowrev-documentation-nav {
    position: sticky;
    top: 20px;
}

.glowrev-nav-sticky {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.glowrev-nav-sticky h3 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 1.1em;
}

.glowrev-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.glowrev-nav-list li {
    margin-bottom: 8px;
}

.glowrev-nav-list a {
    color: #6c757d;
    text-decoration: none;
    padding: 8px 12px;
    display: block;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.95em;
}

.glowrev-nav-list a:hover {
    background: #e9ecef;
    color: #495057;
    transform: translateX(5px);
}

.glowrev-nav-list a:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Main Content */
.glowrev-documentation-main {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.glowrev-doc-section {
    margin-bottom: 50px;
    scroll-margin-top: 20px;
}

.glowrev-doc-section h2 {
    color: #2c3e50;
    font-size: 1.8em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.glowrev-doc-section h3 {
    color: #34495e;
    font-size: 1.3em;
    margin: 30px 0 15px 0;
}

.glowrev-doc-section h4 {
    color: #5a6c7d;
    font-size: 1.1em;
    margin: 20px 0 10px 0;
}

.glowrev-doc-section p {
    line-height: 1.6;
    color: #6c757d;
    margin-bottom: 15px;
}

.glowrev-doc-section ul, .glowrev-doc-section ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.glowrev-doc-section li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Feature Grid */
.glowrev-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.glowrev-feature-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glowrev-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.glowrev-feature-card h3 {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 1.1em;
}

.glowrev-feature-card p {
    margin: 0;
    font-size: 0.9em;
}

/* Code Examples */
.glowrev-code-example {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
    position: relative;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
}

.glowrev-code-example code {
    background: none;
    padding: 0;
    color: #495057;
    white-space: pre-wrap;
    word-break: break-all;
}

.glowrev-copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #667eea;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8em;
    transition: background 0.3s ease;
}

.glowrev-copy-btn:hover {
    background: #5a6fd8;
}

.glowrev-copy-btn.copied {
    background: #28a745;
}

/* Parameters */
.glowrev-parameters {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
}

.glowrev-parameters h4 {
    margin: 0 0 15px 0;
    color: #495057;
}

.glowrev-parameters ul {
    margin: 0;
}

.glowrev-parameters code {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}

/* Examples */
.glowrev-examples {
    margin: 20px 0;
}

.glowrev-example {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 15px;
    border-left: 4px solid #667eea;
}

.glowrev-example h4 {
    margin: 0 0 10px 0;
    color: #495057;
}

/* Display Options */
.glowrev-display-options {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.glowrev-option {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid #28a745;
}

.glowrev-option h4 {
    margin: 0 0 10px 0;
    color: #495057;
}

.glowrev-option p {
    margin: 0;
}

/* CSS Classes */
.glowrev-css-classes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.glowrev-class-group {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
}

.glowrev-class-group h4 {
    margin: 0 0 15px 0;
    color: #495057;
}

.glowrev-class-group ul {
    margin: 0;
}

.glowrev-class-group code {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}

/* Notices */
.glowrev-notice {
    padding: 15px 20px;
    border-radius: 6px;
    margin: 20px 0;
    border-left: 4px solid;
}

.glowrev-notice.info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

.glowrev-notice.tip {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.glowrev-notice.success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.glowrev-notice strong {
    display: block;
    margin-bottom: 5px;
}

/* Troubleshooting */
.glowrev-troubleshooting {
    margin: 20px 0;
}

.glowrev-issue {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 15px;
    border-left: 4px solid #ffc107;
}

.glowrev-issue h4 {
    margin: 0 0 10px 0;
    color: #495057;
}

.glowrev-issue p {
    margin: 0 0 10px 0;
}

.glowrev-issue ul {
    margin: 0;
}

/* FAQ */
.glowrev-faq {
    margin: 20px 0;
}

.glowrev-faq-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 15px;
    border-left: 4px solid #667eea;
}

.glowrev-faq-item h4 {
    margin: 0 0 10px 0;
    color: #495057;
}

.glowrev-faq-item p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .glowrev-documentation-content {
        grid-template-columns: 1fr;
    }
    
    .glowrev-documentation-nav {
        position: static;
        margin-bottom: 30px;
    }
    
    .glowrev-nav-sticky {
        position: static;
    }
    
    .glowrev-documentation-title h1 {
        font-size: 2em;
    }
    
    .glowrev-feature-grid {
        grid-template-columns: 1fr;
    }
    
    .glowrev-css-classes {
        grid-template-columns: 1fr;
    }
    
    .glowrev-code-example {
        font-size: 0.8em;
    }
    
    .glowrev-copy-btn {
        position: static;
        display: block;
        margin-top: 10px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .glowrev-documentation-wrap {
        padding: 10px;
    }
    
    .glowrev-documentation-main {
        padding: 20px;
    }
    
    .glowrev-documentation-header {
        padding: 30px 20px;
    }
    
    .glowrev-documentation-title h1 {
        font-size: 1.8em;
    }
    
    .glowrev-documentation-subtitle {
        font-size: 1em;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.glowrev-nav-list a:focus,
.glowrev-copy-btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .glowrev-documentation-nav {
        display: none;
    }
    
    .glowrev-documentation-content {
        grid-template-columns: 1fr;
    }
    
    .glowrev-copy-btn {
        display: none;
    }
    
    .glowrev-documentation-header {
        background: none !important;
        color: black !important;
    }
}

/* Print button styles */
.glowrev-print-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
}
