/*
Theme Name: Upgrade Training Center
Theme URI: https://upgradetraining.ma
Author: Upgrade Team
Author URI: https://upgradetraining.ma
Description: A professional WordPress theme for Upgrade Training Center Privé - a private educational training center in Morocco. Features modern design, RTL support for Arabic, multi-language capability (Arabic, French, English), and comprehensive educational services showcase.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: upgrade-center
Tags: education, training, rtl-language-support, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready, one-column, two-columns, responsive-layout
*/

/*
 * Import main stylesheet
 */
@import url('css/main.css');

/* ========================================
   CRITICAL CSS FOR IMMEDIATE LOADING
   ======================================== */

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1E3A8A, #00DDB8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-content {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Logo Sizing - Critical Override */
.logo img,
.custom-logo-link img,
.site-header .logo img,
.loading-content img {
    max-height: 50px !important;
    height: auto !important;
    width: auto !important;
    max-width: 250px !important;
    object-fit: contain !important;
}

/* Logo Switching for Dark Mode */
.logo-dark {
    display: none !important;
}

.logo-light {
    display: block !important;
}

body.dark-mode .logo-light {
    display: none !important;
}

body.dark-mode .logo-dark {
    display: block !important;
}

/* Announcement Ribbon */
.announcement-ribbon {
    background: linear-gradient(135deg, #00DDB8, #00BFA0);
    color: white;
    padding: 0.5rem 1rem;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    display: block !important;
    width: 100%;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1020;
    display: block !important;
    width: 100%;
}

.header-content {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Ensure visibility */
body {
    display: block;
    visibility: visible;
}