/* Sitemap Master Plugin Styles */

/* Color Palette - Pastel and Blue Dominant */
:root {
    --primary-blue: #4a90e2;
    --secondary-blue: #7bb3f0;
    --light-blue: #e3f2fd;
    --pastel-green: #81c784;
    --pastel-yellow: #ffb74d;
    --pastel-red: #e57373;
    --pastel-purple: #ba68c8;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --border-color: #dee2e6;
    --shadow-color: rgba(0, 0, 0, 0.08);
}

/* Base Styles */
.sitemap-master-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--light-gray);
    min-height: 100vh;
    padding: 2rem 0;
}

.sitemap-master-wrap .container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Card Styles with Rounded Elements */
.card {
    border: none !important;
    box-shadow: 0 4px 12px var(--shadow-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sitemap-master-wrap .card {
    max-width: inherit !important;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card-header {
    border: none !important;
    padding: 1.5rem 2rem 1rem 2rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem 2rem;
}

/* Sitemap Cards on Homepage */
.sitemap-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.sitemap-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.sitemap-card .card-body {
    padding: 2rem;
}

.sitemap-card i {
    transition: transform 0.3s ease;
}

.sitemap-card:hover i {
    transform: scale(1.1);
}

/* Button Styles - Rounded Pills */
.btn {
    font-weight: 500;
    transition: all 0.3s ease;
    border-width: 2px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-color: var(--primary-blue);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3a7bc8, #6ba3d6);
    border-color: #3a7bc8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, var(--pastel-green), #66bb6a);
    border-color: var(--pastel-green);
}

.btn-success:hover {
    background: linear-gradient(135deg, #6eb871, #5cb85c);
    border-color: #6eb871;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(129, 199, 132, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, var(--pastel-yellow), #ffa726);
    border-color: var(--pastel-yellow);
    color: #333;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #ff9800, #ff8f00);
    border-color: #ff9800;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 183, 77, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, var(--pastel-red), #ef5350);
    border-color: var(--pastel-red);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #e53935, #d32f2f);
    border-color: #e53935;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 115, 115, 0.3);
}

.btn-info {
    background: linear-gradient(135deg, #26c6da, #00acc1);
    border-color: #26c6da;
}

.btn-info:hover {
    background: linear-gradient(135deg, #00bcd4, #0097a7);
    border-color: #00bcd4;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(38, 198, 218, 0.3);
}

/* Form Styles */
.form-control, .form-select {
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.15);
}

.form-label {
    font-weight: 600;
    color: var(--medium-gray);
    margin-bottom: 0.5rem;
}

.form-label i {
    color: var(--primary-blue);
}

/* Rounded Form Elements */
.rounded-pill {
    border-radius: 50rem !important;
}

.rounded-3 {
    border-radius: 1rem !important;
}

/* Alert Styles */
.alert {
    border: none;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, rgba(129, 199, 132, 0.1), rgba(102, 187, 106, 0.1));
    color: #2e7d32;
    border-left: 4px solid var(--pastel-green);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(229, 115, 115, 0.1), rgba(239, 83, 80, 0.1));
    color: #c62828;
    border-left: 4px solid var(--pastel-red);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 183, 77, 0.1), rgba(255, 167, 38, 0.1));
    color: #ef6c00;
    border-left: 4px solid var(--pastel-yellow);
}

.alert-info {
    background: linear-gradient(135deg, rgba(38, 198, 218, 0.1), rgba(0, 172, 193, 0.1));
    color: #00695c;
    border-left: 4px solid #26c6da;
}

/* Table Styles */
.table {
    font-size: 0.9rem;
}

.table thead th {
    background-color: var(--light-blue) !important;
    color: var(--primary-blue);
    font-weight: 600;
    border: none;
    padding: 1rem 0.75rem;
}

.table tbody td {
    padding: 1rem 0.75rem;
    vertical-align: middle;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.table-hover tbody tr:hover {
    background-color: rgba(74, 144, 226, 0.05);
}

/* Badge Styles */
.badge {
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
}

.badge.bg-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue)) !important;
}

.badge.bg-secondary {
    background: linear-gradient(135deg, var(--medium-gray), #5a6268) !important;
}

.badge.bg-light {
    background: var(--light-gray) !important;
    color: var(--medium-gray) !important;
    border: 1px solid var(--border-color);
}

/* Statistics Cards */
.bg-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue)) !important;
}

.bg-success {
    background: linear-gradient(135deg, var(--pastel-green), #66bb6a) !important;
}

.bg-warning {
    background: linear-gradient(135deg, var(--pastel-yellow), #ffa726) !important;
}

.bg-info {
    background: linear-gradient(135deg, #26c6da, #00acc1) !important;
}

/* Icon Styles */
.fas, .far {
    transition: all 0.3s ease;
}

.text-primary {
    color: var(--primary-blue) !important;
}

.text-success {
    color: var(--pastel-green) !important;
}

.text-warning {
    color: var(--pastel-yellow) !important;
}

.text-danger {
    color: var(--pastel-red) !important;
}

.text-info {
    color: #26c6da !important;
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease-out;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .sitemap-master-wrap {
        padding: 1rem 0;
    }
    
    .sitemap-master-wrap .container-fluid {
        padding: 0 0.5rem;
    }
    
    .card-body {
        padding: 1rem 1.5rem;
    }
    
    .card-header {
        padding: 1rem 1.5rem 0.5rem 1.5rem;
    }
    
    .sitemap-card .card-body {
        padding: 1.5rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h5 {
        font-size: 1.1rem;
    }
    
    .table-responsive {
        font-size: 0.85rem;
    }
    
    .btn-group .btn {
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 576px) {
    .d-flex.align-items-center {
        flex-direction: column;
        text-align: center;
    }
    
    .d-flex.align-items-center > i {
        margin-bottom: 1rem;
        margin-right: 0 !important;
    }
    
    .btn-group {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-group .btn {
        border-radius: 50rem !important;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--medium-gray);
}

/* Print Styles */
@media print {
    .btn, .alert {
        display: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid var(--border-color) !important;
    }
}

/* Focus Indicators for Accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Platform/Content Type Cards */
.content-type-card,
.marketplace-card,
.platform-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.content-type-card:hover,
.marketplace-card:hover,
.platform-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.content-type-card .card-body,
.marketplace-card .card-body,
.platform-card .card-body {
    transition: all 0.3s ease;
}

.content-type-card:hover .card-body,
.marketplace-card:hover .card-body,
.platform-card:hover .card-body {
    transform: scale(1.02);
}

/* Configuration Section Animations */
.slide-in {
    animation: slideIn 0.5s ease-out;
}

.slide-out {
    animation: slideOut 0.3s ease-in;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Configure Button Hover Effects */
.configure-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.configure-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.configure-btn:hover::before {
    left: 100%;
}

.configure-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Icon Animations */
.content-type-card i,
.marketplace-card i,
.platform-card i {
    transition: transform 0.3s ease;
}

.content-type-card:hover i,
.marketplace-card:hover i,
.platform-card:hover i {
    transform: scale(1.1) rotate(5deg);
}

/* Configuration Section Styles */
#configuration-section {
    width: 100% !important;
    max-width: 100% !important;
}

#configuration-section .card {
    background: linear-gradient(135deg, #f8fbff 0%, #e8f4fd 100%);
    border: 1px solid rgba(74, 144, 226, 0.1);
    width: 100% !important;
    max-width: 100% !important;
}

#configuration-section .card-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%) !important;
    border: none;
    padding: 0.75rem 1rem;
}

#configuration-section .card-body {
    padding: 2rem;
}

#configuration-section .form-label {
    color: #4a6ba3;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

#configuration-section .form-control,
#configuration-section .form-select {
    border: 2px solid rgba(74, 144, 226, 0.15);
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

#configuration-section .form-control:focus,
#configuration-section .form-select:focus {
    border-color: var(--primary-blue);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.12);
}

#configuration-section .btn-primary {
    background: linear-gradient(135deg, #5a9bd4 0%, #7bb3f0 100%);
    border-color: #5a9bd4;
    box-shadow: 0 4px 12px rgba(90, 155, 212, 0.25);
}

#configuration-section .btn-primary:hover {
    background: linear-gradient(135deg, #4a8bc2 0%, #6ba3d6 100%);
    border-color: #4a8bc2;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(74, 139, 194, 0.35);
}

#configuration-section .btn-outline-secondary {
    border-color: rgba(108, 117, 125, 0.3);
    color: #6c757d;
    background: transparent;
}

#configuration-section .btn-outline-secondary:hover {
    background: rgba(108, 117, 125, 0.1);
    border-color: rgba(108, 117, 125, 0.5);
    color: #495057;
}

/* WPML ATE Console Container Override */
#wpml-ate-console-container .card {
    max-width: inherit !important;
}

/* Premium Card Styles */
.premium-locked {
    position: relative;
    opacity: 0.8;
}

.premium-locked:hover {
    opacity: 1;
}

.premium-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #333;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 50rem;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.premium-badge i {
    margin-right: 0.25rem;
    font-size: 0.8rem;
}

.premium-btn {
    background: linear-gradient(135deg, #ffc107, #ff9800) !important;
    border-color: #ffc107 !important;
    color: #333 !important;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.premium-btn:hover {
    background: linear-gradient(135deg, #ff9800, #f57c00) !important;
    border-color: #ff9800 !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

.premium-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.premium-btn:hover::before {
    left: 100%;
}

/* Premium Modal Styles */
#premiumModal .modal-content {
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

#premiumModal .modal-header {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #333;
    border-radius: 1rem 1rem 0 0;
}

#premiumModal .modal-body {
    padding: 2rem;
}

#premiumModal .premium-icon-container {
    position: relative;
}

#premiumModal .premium-icon-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.2), transparent);
    border-radius: 50%;
    z-index: -1;
}

#premiumModal .bg-light {
    background: rgba(255, 193, 7, 0.05) !important;
    border: 1px solid rgba(255, 193, 7, 0.1);
}

#premiumModal .alert-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 152, 0, 0.05));
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-left: 4px solid #ffc107;
}

#premiumModal .btn-warning {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    border-color: #ffc107;
    color: #333;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

#premiumModal .btn-warning:hover {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    border-color: #ff9800;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 152, 0, 0.4);
}

/* Premium Feature Highlight Animation */
@keyframes premiumGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 193, 7, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 193, 7, 0.6);
    }
}

.premium-locked:hover {
    animation: premiumGlow 2s infinite;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-blue: #0056b3;
        --border-color: #495057;
        --shadow-color: rgba(0, 0, 0, 0.25);
    }
    
    .card {
        border: 2px solid var(--border-color) !important;
    }
}