/**
 * Help
 * CodeSig: sgketg
 * Author: G & D Enterprises, Inc.
 */

.joan-help-content {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.6;
}

.joan-help-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
}

.joan-help-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 600;
    color: white;
}

.joan-help-header .description {
    font-size: 16px;
    opacity: 1;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

.joan-help-section {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    margin-bottom: 25px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.joan-help-section h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #23282d;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.2s ease;
}

.joan-help-section h3:hover {
    color: #0073aa;
}

.joan-help-section h3::after {
    content: "▼";
    font-size: 14px;
    transition: transform 0.3s ease;
    color: #0073aa;
}

.joan-help-section.collapsed h3::after {
    transform: rotate(-90deg);
}

.joan-help-section-content {
    transition: all 0.3s ease;
    overflow: hidden;
}

.joan-help-section.collapsed .joan-help-section-content {
    display: none;
}

.joan-help-section h4 {
    margin: 20px 0 10px 0;
    font-size: 16px;
    color: #555;
    font-weight: 600;
}

.joan-help-section ul,
.joan-help-section ol {
    margin: 15px 0;
    padding-left: 20px;
}

.joan-help-section li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.joan-help-section li strong {
    color: #0073aa;
}

.joan-help-steps ol {
    counter-reset: step-counter;
    padding-left: 0;
}

.joan-help-steps ol li {
    counter-increment: step-counter;
    position: relative;
    padding: 15px 20px 15px 60px;
    margin-bottom: 15px;
    background: #f8f9fa;
    border-left: 4px solid #0073aa;
    border-radius: 4px;
}

.joan-help-steps ol li::before {
    content: counter(step-counter);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: #0073aa;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.joan-shortcode-help {
    background: #f7f7f7;
    padding: 20px;
    border-radius: 6px;
    margin-top: 15px;
}

.joan-shortcode-help h4 {
    margin-top: 25px;
    margin-bottom: 8px;
    color: #333;
}

.joan-shortcode-help h4:first-child {
    margin-top: 0;
}

.joan-shortcode-help code {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: inline-block;
}

.joan-shortcode-help code:hover {
    background: #34495e;
    transform: scale(1.02);
}

.joan-shortcode-help code::after {
    content: "Click to copy";
    position: absolute;
    left: 50%;
    top: -35px;
    transform: translateX(-50%);
    background: #2c3e50;
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000;
}

.joan-shortcode-help code:hover::after {
    opacity: 1;
}

.joan-shortcode-help code.copied {
    background: #27ae60 !important;
}

.joan-shortcode-help code.copied::after {
    content: "Copied!" !important;
    opacity: 1 !important;
}

.joan-shortcode-help p {
    margin: 8px 0 15px 0;
    color: #666;
}

.joan-shortcode-help ul {
    background: white;
    padding: 15px 20px;
    border-radius: 4px;
    border: 1px solid #ddd;
    margin: 10px 0;
}

.joan-shortcode-help ul li {
    margin-bottom: 5px;
}

.joan-checklist {
    background: #f0f8ff;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #b3d9ff;
    margin-top: 15px;
}

.joan-checklist label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    color: #2c3e50;
    font-weight: 500;
}

.joan-checklist label:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.joan-checklist input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.1);
}

.joan-checklist label:hover {
    background: rgba(0,115,170,0.1);
    padding-left: 10px;
    margin-left: -10px;
    border-radius: 4px;
    color: #0073aa;
}

.joan-help-footer {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 25px;
    border-radius: 8px;
    margin-top: 30px;
}

.joan-help-footer h3 {
    margin: 0 0 15px 0;
    font-size: 22px;
    color: white;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding-bottom: 8px;
}

/* Support & Updates Links */
.joan-support-links {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin-top: 15px;
    border: 1px solid #dee2e6;
}

.joan-support-links h4 {
    margin-top: 0;
    color: #495057;
    font-size: 16px;
}

.joan-support-links a {
    display: inline-block;
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
    margin: 8px 15px 8px 0;
    padding: 8px 16px;
    background: white;
    border: 2px solid #0073aa;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.joan-support-links a:hover {
    background: #0073aa;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,115,170,0.3);
}

.joan-support-links a::after {
    content: " ↗";
    font-size: 12px;
    opacity: 0.7;
}

/* Premium Feature Badge */
.premium-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff9a56, #ff6b6b);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(255,107,107,0.3);
}

.premium-feature {
    background: #fff8e1;
    border: 1px solid #ffecb3;
    border-left: 4px solid #ff9800;
    padding: 15px;
    border-radius: 4px;
    margin: 10px 0;
}

.premium-feature h5 {
    margin: 0 0 8px 0;
    color: #e65100;
    font-size: 14px;
    font-weight: 600;
}

.premium-feature p {
    margin: 0;
    color: #bf360c;
    font-size: 13px;
    line-height: 1.4;
}

.premium-feature a {
    color: #e65100;
    text-decoration: none;
    font-weight: 600;
}

.premium-feature a:hover {
    color: #bf360c;
    text-decoration: underline;
}

/* Collapse/Expand Controls */
.joan-help-controls {
    text-align: center;
    margin-bottom: 20px;
}

.joan-help-controls button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 5px;
    font-size: 14px;
    transition: background 0.2s ease;
}

.joan-help-controls button:hover {
    background: #005a87;
}

/* Responsive design */
@media (max-width: 782px) {
    .joan-help-content {
        margin: 0 10px;
    }
    
    .joan-help-header {
        padding: 20px 15px;
    }
    
    .joan-help-header h2 {
        font-size: 24px;
    }
    
    .joan-help-section {
        padding: 20px 15px;
    }
    
    .joan-help-steps ol li {
        padding-left: 50px;
    }
    
    .joan-help-steps ol li::before {
        left: 15px;
        width: 25px;
        height: 25px;
        font-size: 12px;
    }

    .joan-shortcode-help code::after {
        display: none;
    }

    .joan-support-links a {
        display: block;
        margin: 8px 0;
        text-align: center;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .joan-help-section {
        background: #2c3e50;
        border-color: #34495e;
        color: #ecf0f1;
    }
    
    .joan-help-section h3 {
        color: #ecf0f1;
        border-bottom-color: #3498db;
    }
    
    .joan-help-section h3:hover {
        color: #3498db;
    }
    
    .joan-help-section h4 {
        color: #bdc3c7;
    }
    
    .joan-help-steps ol li {
        background: #34495e;
        color: #ecf0f1;
    }
    
    .joan-shortcode-help {
        background: #34495e;
        color: #ecf0f1;
    }
    
    .joan-shortcode-help p {
        color: #bdc3c7;
    }
    
    .joan-shortcode-help ul {
        background: #2c3e50;
        border-color: #34495e;
    }
    
    .joan-checklist {
        background: #2c3e50;
        border-color: #3498db;
        color: #ecf0f1;
    }
    
    .joan-checklist label {
        color: #ecf0f1;
    }
    
    .joan-checklist label:hover {
        background: rgba(52,152,219,0.2);
        color: #3498db;
    }

    .joan-support-links {
        background: #34495e;
        border-color: #4a5568;
    }

    .joan-support-links h4 {
        color: #bdc3c7;
    }

    .joan-support-links a {
        background: #2c3e50;
        border-color: #3498db;
        color: #3498db;
    }

    .joan-support-links a:hover {
        background: #3498db;
        color: #2c3e50;
    }
}

/* Print styles */
@media print {
    .joan-help-content {
        max-width: none;
        margin: 0;
    }
    
    .joan-help-header {
        background: #f8f9fa !important;
        color: #333 !important;
        border: 2px solid #0073aa;
    }
    
    .joan-help-section {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .joan-help-steps ol li::before {
        background: #0073aa !important;
        color: white !important;
    }
    
    .joan-help-controls {
        display: none;
    }

    .joan-support-links a::after {
        display: none;
    }
}

/* Animation for better UX */
.joan-help-section {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Interactive elements */
.joan-help-section:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transition: box-shadow 0.3s ease;
}

/* Accessibility improvements */
.joan-help-section:focus-within {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Code highlighting */
.joan-shortcode-help code {
    position: relative;
    transition: all 0.2s ease;
}

.joan-shortcode-help code:hover {
    background: #34495e;
    transform: scale(1.05);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}