/**
 * Walkthrough Overlay Styles
 * Material Design 3 inspired styling for feature walkthroughs
 */

/* Overlay Background */
.walkthrough-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Card Container */
.walkthrough-card-container {
    position: absolute;
    max-width: 400px;
    width: 90%;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Position Classes */
.walkthrough-position-top {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.walkthrough-position-bottom {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.walkthrough-position-left {
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
}

.walkthrough-position-right {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

.walkthrough-position-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Card */
.walkthrough-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Header */
.walkthrough-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 16px 20px;
    border-bottom: 1px solid #e9ecef;
}

.walkthrough-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
    line-height: 1.3;
}

.walkthrough-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #8e8e93;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
}

.walkthrough-close:hover {
    background: #f5f5f7;
    color: #1d1d1f;
}

/* Body */
.walkthrough-body {
    padding: 16px 20px;
}

.walkthrough-description {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: #6e6e73;
}

/* Footer */
.walkthrough-footer {
    padding: 16px 20px 20px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid #e9ecef;
}

/* Buttons */
.walkthrough-button {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.walkthrough-button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.walkthrough-button-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.walkthrough-button-primary:active {
    transform: translateY(0);
}

.walkthrough-button-secondary {
    background: #f5f5f7;
    color: #1d1d1f;
}

.walkthrough-button-secondary:hover {
    background: #e9ecef;
}

/* Responsive Design */
@media (max-width: 768px) {
    .walkthrough-card-container {
        max-width: calc(100% - 40px);
        width: calc(100% - 40px);
    }
    
    .walkthrough-card {
        border-radius: 12px;
    }
    
    .walkthrough-header {
        padding: 16px 16px 12px 16px;
    }
    
    .walkthrough-title {
        font-size: 18px;
    }
    
    .walkthrough-body {
        padding: 12px 16px;
    }
    
    .walkthrough-description {
        font-size: 14px;
    }
    
    .walkthrough-footer {
        padding: 12px 16px 16px 16px;
    }
    
    .walkthrough-button {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .walkthrough-position-top,
    .walkthrough-position-bottom {
        left: 20px;
        right: 20px;
        transform: none;
        width: auto;
    }
    
    .walkthrough-position-left,
    .walkthrough-position-right {
        left: 20px;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        width: auto;
    }
}

/* Accessibility */
.walkthrough-overlay:focus-within {
    outline: none;
}

.walkthrough-button:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.walkthrough-close:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}
