/**
 * Help Guide Styles
 * Styles for the Custom Shirt Designer Help Guide page
 */

/* Hide default WordPress page title and spacers on help page */
.csd-help-guide ~ .wp-block-group,
.wp-block-group:has(+ .csd-help-guide),
body.page .wp-block-post-title,
body.page .entry-title,
body.page article > .wp-block-group:first-child,
body.page .wp-block-spacer {
    display: none !important;
}

/* Alternative: Target the specific elements directly */
.wp-block-group.has-global-padding:has(.wp-block-post-title) {
    display: none !important;
}

.csd-help-guide {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: #1f2937;
    line-height: 1.7;
}

/* Header */
.csd-help-guide .help-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e5e7eb;
}

.csd-help-guide .help-header h1 {
    font-size: 2.5rem;
    color: #92400e;
    margin-bottom: 15px;
    font-weight: 700;
}

.csd-help-guide .help-intro {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 700px;
    margin: 0 auto;
}

/* Table of Contents */
.csd-help-guide .help-toc {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 40px;
    border: 1px solid #fbbf24;
}

.csd-help-guide .help-toc h2 {
    font-size: 1.3rem;
    color: #b45309;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.csd-help-guide .help-toc h2::before {
    content: "📑";
}

.csd-help-guide .help-toc ol {
    margin: 0;
    padding-left: 25px;
    columns: 2;
    column-gap: 30px;
}

.csd-help-guide .help-toc li {
    margin-bottom: 8px;
    break-inside: avoid;
}

.csd-help-guide .help-toc a {
    color: #d97706;
    text-decoration: none;
    transition: color 0.2s;
}

.csd-help-guide .help-toc a:hover {
    color: #b45309;
    text-decoration: underline;
}

/* Sections */
.csd-help-guide .help-section {
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e5e7eb;
}

.csd-help-guide .help-section:last-of-type {
    border-bottom: none;
}

.csd-help-guide .help-section h2 {
    font-size: 1.75rem;
    color: #92400e;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #f59e0b;
    display: inline-block;
}

.csd-help-guide .help-section h3 {
    font-size: 1.25rem;
    color: #374151;
    margin: 25px 0 15px 0;
    font-weight: 600;
}

.csd-help-guide .help-section h4 {
    font-size: 1.1rem;
    color: #4b5563;
    margin: 20px 0 10px 0;
    font-weight: 600;
}

/* Lists */
.csd-help-guide ul,
.csd-help-guide ol {
    padding-left: 25px;
    margin-bottom: 20px;
}

.csd-help-guide li {
    margin-bottom: 8px;
}

.csd-help-guide li strong {
    color: #b45309;
}

/* Steps List */
.csd-help-guide .steps {
    counter-reset: step-counter;
    list-style: none;
    padding-left: 0;
}

.csd-help-guide .steps > li {
    position: relative;
    padding-left: 50px;
    margin-bottom: 25px;
    counter-increment: step-counter;
}

.csd-help-guide .steps > li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    background: #f59e0b;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.csd-help-guide .steps > li strong {
    display: block;
    font-size: 1.05rem;
    color: #1f2937;
    margin-bottom: 5px;
}

.csd-help-guide .steps > li p {
    margin: 5px 0;
    color: #6b7280;
}

.csd-help-guide .steps > li ul {
    margin-top: 10px;
}

/* Help Images */
.csd-help-guide .help-image {
    margin: 20px 0;
    text-align: center;
}

.csd-help-guide .help-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

/* Image Placeholders */
.csd-help-guide .image-placeholder {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 2px dashed #9ca3af;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    margin: 20px 0;
}

.csd-help-guide .image-placeholder .placeholder-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.csd-help-guide .image-placeholder p {
    color: #6b7280;
    font-style: italic;
    margin: 0;
    font-size: 0.95rem;
}

/* Info Boxes */
.csd-help-guide .info-box {
    display: flex;
    gap: 15px;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.csd-help-guide .info-box .info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.csd-help-guide .info-box .info-content {
    flex: 1;
}

.csd-help-guide .info-box .info-content strong {
    display: block;
    margin-bottom: 5px;
}

.csd-help-guide .info-box .info-content p {
    margin: 0;
}

.csd-help-guide .info-box .info-content ul {
    margin: 10px 0 0 0;
}

/* Info Box Variants */
.csd-help-guide .info-tip {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #6ee7b7;
}

.csd-help-guide .info-tip strong {
    color: #047857;
}

.csd-help-guide .info-note {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fbbf24;
}

.csd-help-guide .info-note strong {
    color: #b45309;
}

.csd-help-guide .info-warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fcd34d;
}

.csd-help-guide .info-warning strong {
    color: #b45309;
}

/* Comparison Images */
.csd-help-guide .comparison-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 25px 0;
}

.csd-help-guide .comparison-item {
    padding: 20px;
    border-radius: 12px;
}

.csd-help-guide .comparison-item h4 {
    margin: 0 0 15px 0;
    font-size: 1rem;
}

.csd-help-guide .comparison-item.wrong {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid #fca5a5;
}

.csd-help-guide .comparison-item.wrong h4 {
    color: #dc2626;
}

.csd-help-guide .comparison-item.correct {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #86efac;
}

.csd-help-guide .comparison-item.correct h4 {
    color: #16a34a;
}

.csd-help-guide .comparison-desc {
    text-align: center;
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 10px;
}

/* Size Table */
.csd-help-guide .size-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95rem;
}

.csd-help-guide .size-table th,
.csd-help-guide .size-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.csd-help-guide .size-table th {
    background: #f3f4f6;
    font-weight: 600;
    color: #374151;
}

.csd-help-guide .size-table tr:hover {
    background: #f9fafb;
}

/* FAQ Items */
.csd-help-guide .faq-item {
    margin-bottom: 25px;
    padding: 20px;
    background: #fffbeb;
    border-radius: 10px;
    border-left: 4px solid #f59e0b;
}

.csd-help-guide .faq-item h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: #1f2937;
}

.csd-help-guide .faq-item p {
    margin: 0;
    color: #6b7280;
}

.csd-help-guide .faq-item ul {
    margin: 10px 0 0 0;
}

/* Footer */
.csd-help-guide .help-footer {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid #e5e7eb;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .csd-help-guide {
        padding: 20px 15px;
    }
    
    .csd-help-guide .help-header h1 {
        font-size: 1.75rem;
    }
    
    .csd-help-guide .help-toc ol {
        columns: 1;
    }
    
    .csd-help-guide .help-section h2 {
        font-size: 1.4rem;
    }
    
    .csd-help-guide .comparison-images {
        grid-template-columns: 1fr;
    }
    
    .csd-help-guide .steps > li {
        padding-left: 40px;
    }
    
    .csd-help-guide .steps > li::before {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
}
