/* HoneyGuide Help Center - Screenshot Callout System */

/* ===================================================
   Screenshot Container
   =================================================== */
.screenshot-container {
    position: relative;
    display: inline-block;
    margin: 1.5rem 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: visible;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 100%;
}

.screenshot-container img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.screenshot-container.screenshot-bordered img {
    border: 2px solid #dee2e6;
}

.screenshot-container.screenshot-shadow img {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Screenshot Caption */
.screenshot-caption {
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 8px 8px;
    font-size: 0.875rem;
    color: #6c757d;
    text-align: center;
}

/* ===================================================
   Callout Markers
   =================================================== */
.callout {
    position: absolute;
    display: flex;
    align-items: flex-start;
    z-index: 10;
    pointer-events: auto;
}

.callout-number {
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: #0d6efd;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid white;
}

.callout-number:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Callout Text Tooltip */
.callout-text {
    display: none;
    position: absolute;
    left: 36px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(33, 37, 41, 0.95);
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
    max-width: 280px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.callout-text::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: rgba(33, 37, 41, 0.95);
}

.callout:hover .callout-text {
    display: block;
}

/* Callout positioned on right side of screen - flip tooltip to left */
.callout.callout-flip .callout-text {
    left: auto;
    right: 36px;
}

.callout.callout-flip .callout-text::before {
    left: auto;
    right: -6px;
    border-right-color: transparent;
    border-left-color: rgba(33, 37, 41, 0.95);
}

/* ===================================================
   Callout Color Variations
   =================================================== */
.callout-1 .callout-number { background: #0d6efd; } /* Blue - Primary */
.callout-2 .callout-number { background: #198754; } /* Green - Success */
.callout-3 .callout-number { background: #fd7e14; } /* Orange - Warning */
.callout-4 .callout-number { background: #dc3545; } /* Red - Danger */
.callout-5 .callout-number { background: #6f42c1; } /* Purple */
.callout-6 .callout-number { background: #20c997; } /* Teal */
.callout-7 .callout-number { background: #e83e8c; } /* Pink */
.callout-8 .callout-number { background: #6c757d; } /* Gray */
.callout-9 .callout-number { background: #17a2b8; } /* Cyan */
.callout-10 .callout-number { background: #343a40; } /* Dark */

/* Warning and Info callout styles */
.callout-warning .callout-number {
    background: #ffc107;
    color: #000;
}

.callout-info .callout-number {
    background: #17a2b8;
}

.callout-success .callout-number {
    background: #198754;
}

.callout-danger .callout-number {
    background: #dc3545;
}

/* ===================================================
   Callout Legend
   =================================================== */
.callout-legend {
    margin: 1rem 0 1.5rem 0;
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0d6efd;
}

.callout-legend-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #212529;
    font-size: 0.95rem;
}

.callout-legend-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.callout-legend-item:last-child {
    margin-bottom: 0;
}

.callout-legend-number {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    color: white;
    margin-right: 0.75rem;
}

.callout-legend-text {
    flex: 1;
    color: #495057;
    line-height: 1.5;
}

/* ===================================================
   Step-by-Step Instructions
   =================================================== */
.step-container {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.step-number {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    margin-right: 1rem;
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.3);
}

.step-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
}

.step-content {
    margin-left: 52px;
}

.step-description {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Step variations */
.step-container.step-success {
    border-left: 4px solid #198754;
}

.step-container.step-success .step-number {
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
}

.step-container.step-warning {
    border-left: 4px solid #ffc107;
}

.step-container.step-warning .step-number {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #000;
}

.step-container.step-info {
    border-left: 4px solid #17a2b8;
}

.step-container.step-info .step-number {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

/* ===================================================
   Pro Tips and Notes
   =================================================== */
.tip-box {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
}

.tip-box-icon {
    font-size: 1.25rem;
    margin-right: 0.875rem;
    flex-shrink: 0;
}

.tip-box-content {
    flex: 1;
}

.tip-box-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.tip-box.tip-pro {
    background: linear-gradient(135deg, #e7f3ff 0%, #d6e9ff 100%);
    border: 1px solid #b8daff;
}

.tip-box.tip-pro .tip-box-icon {
    color: #0d6efd;
}

.tip-box.tip-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffc107;
}

.tip-box.tip-warning .tip-box-icon {
    color: #856404;
}

.tip-box.tip-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 1px solid #f5c6cb;
}

.tip-box.tip-danger .tip-box-icon {
    color: #dc3545;
}

.tip-box.tip-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #c3e6cb;
}

.tip-box.tip-success .tip-box-icon {
    color: #198754;
}

/* ===================================================
   Video Container
   =================================================== */
.video-container {
    position: relative;
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.video-container video {
    width: 100%;
    display: block;
}

.video-container .video-placeholder {
    background: linear-gradient(135deg, #343a40 0%, #495057 100%);
    padding: 4rem 2rem;
    text-align: center;
    color: white;
}

.video-container .video-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.video-container .video-placeholder p {
    margin: 0;
    opacity: 0.9;
}

/* Video Controls */
.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ===================================================
   Mobile Responsiveness
   =================================================== */
@media (max-width: 768px) {
    .screenshot-container {
        margin: 1rem 0;
    }
    
    .callout-text {
        display: none !important;
    }
    
    .callout-number {
        width: 24px;
        height: 24px;
        min-width: 24px;
        font-size: 12px;
    }
    
    /* Always show legend on mobile */
    .callout-legend {
        display: block !important;
    }
    
    .step-content {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .step-header {
        flex-wrap: wrap;
    }
    
    .tip-box {
        flex-direction: column;
    }
    
    .tip-box-icon {
        margin-bottom: 0.5rem;
    }
}

/* ===================================================
   Print Styles
   =================================================== */
@media print {
    .callout-text {
        display: block !important;
        position: static;
        transform: none;
        background: #f0f0f0;
        color: #000;
        margin-top: 0.5rem;
        padding: 0.25rem 0.5rem;
        font-size: 10px;
    }
    
    .callout-text::before {
        display: none;
    }
    
    .screenshot-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .video-container {
        display: none;
    }
    
    .video-container::after {
        content: '[Video content - visit online version]';
        display: block;
        padding: 1rem;
        background: #f0f0f0;
        text-align: center;
    }
}

/* ===================================================
   Accessibility
   =================================================== */
.callout-number:focus {
    outline: 3px solid #0d6efd;
    outline-offset: 2px;
}

.callout-number:focus-visible {
    outline: 3px solid #0d6efd;
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .callout-number {
        border: 2px solid #000;
    }
    
    .callout-text {
        background: #000;
        border: 1px solid #fff;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .callout-number {
        transition: none;
    }
    
    .callout-number:hover {
        transform: none;
    }
}
