/**
 * King Addons Template Catalog Button Styles
 * Styles for the template catalog button in Elementor content area
 */

/* Content Area Button Container */
.king-addons-template-catalog-content-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    min-height: 200px;
    border: 2px dashed #e0e0e0;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    margin: 20px;
    transition: all 0.3s ease;
}

.king-addons-template-catalog-content-area:hover {
    border-color: #6366f1;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

/* Overlay Container */
.king-addons-template-catalog-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999999;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
}

/* Main Button Styles */
.king-addons-template-catalog-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    outline: none;
    user-select: none;
    min-width: 200px;
}

/* Content Area Button Specific Styles */
.king-addons-template-catalog-btn.king-addons-content-area-btn {
    padding: 18px 36px;
    font-size: 18px;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* Button Hover State */
.king-addons-template-catalog-btn:hover {
    background: linear-gradient(135deg, #5855eb 0%, #7c3aed 100%);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
    color: #ffffff;
}

.king-addons-content-area-btn:hover {
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
    transform: translateY(-3px);
}

/* Button Active State */
.king-addons-template-catalog-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Button Focus State */
.king-addons-template-catalog-btn:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2), 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Icon Styles */
.king-addons-template-catalog-btn i {
    margin-right: 12px;
    font-size: 18px;
    line-height: 1;
}

.king-addons-content-area-btn i {
    font-size: 20px;
    margin-right: 14px;
}

/* Text Styles */
.king-addons-template-catalog-btn .king-addons-btn-text {
    font-weight: 600;
    letter-spacing: 0.025em;
}

/* Title and Subtitle in Content Area */
.king-addons-template-catalog-content-area h3 {
    margin: 0 0 16px 0;
    font-size: 24px;
    font-weight: 600;
    color: #334155;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.king-addons-template-catalog-content-area p {
    margin: 0 0 24px 0;
    font-size: 16px;
    color: #64748b;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .king-addons-template-catalog-content-area {
        padding: 30px 15px;
        min-height: 150px;
        margin: 15px;
    }
    
    .king-addons-template-catalog-content-area h3 {
        font-size: 20px;
    }
    
    .king-addons-template-catalog-content-area p {
        font-size: 14px;
    }
    
    .king-addons-template-catalog-btn {
        padding: 14px 28px;
        font-size: 15px;
        min-width: 180px;
    }
    
    .king-addons-content-area-btn {
        padding: 16px 30px;
        font-size: 16px;
    }
    
    .king-addons-template-catalog-btn i {
        font-size: 16px;
        margin-right: 10px;
    }
    
    .king-addons-content-area-btn i {
        font-size: 18px;
        margin-right: 12px;
    }
}

@media (max-width: 480px) {
    .king-addons-template-catalog-content-area {
        padding: 25px 10px;
        margin: 10px;
    }
    
    .king-addons-template-catalog-btn {
        padding: 12px 24px;
        font-size: 14px;
        min-width: 160px;
    }
    
    .king-addons-template-catalog-overlay {
        max-width: 90%;
        padding: 20px;
    }
}

/* Animation for smooth appearance */
@keyframes king-addons-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.king-addons-template-catalog-content-area {
    animation: king-addons-fade-in 0.5s ease-out;
}

.king-addons-template-catalog-overlay {
    animation: king-addons-fade-in 0.3s ease-out;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .king-addons-template-catalog-content-area {
        background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
        border-color: #475569;
    }
    
    .king-addons-template-catalog-content-area h3 {
        color: #f1f5f9;
    }
    
    .king-addons-template-catalog-content-area p {
        color: #cbd5e1;
    }
    
    .king-addons-template-catalog-overlay {
        background: #1e293b;
        color: #f1f5f9;
    }
    
    .king-addons-template-catalog-btn {
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.5);
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .king-addons-template-catalog-btn {
        border: 2px solid #ffffff;
        font-weight: 700;
    }
    
    .king-addons-template-catalog-content-area {
        border-width: 3px;
        border-style: solid;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .king-addons-template-catalog-btn {
        transition: none;
    }
    
    .king-addons-template-catalog-btn:hover {
        transform: none;
    }
    
    .king-addons-template-catalog-content-area {
        animation: none;
        transition: none;
    }
}

/* Print Styles */
@media print {
    .king-addons-template-catalog-content-area,
    .king-addons-template-catalog-overlay {
        display: none;
    }
}
