/* ==========================================================================
   EL ETIHAD LOGO - CSS-BASED DESIGN
   النمط الشبكي للوجو شركة الإتحاد للصناعات البلاستيكية
   Grid pattern representing woven plastic bags
   ========================================================================== */

/* --------------------------------------------------------------------------
   LOGO CONTAINER
   -------------------------------------------------------------------------- */
.etihad-logo {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.etihad-logo:hover {
    transform: scale(1.02);
}

/* --------------------------------------------------------------------------
   LOGO ICON - GRID PATTERN
   أيقونة الشبكة المنسوجة
   -------------------------------------------------------------------------- */
.etihad-logo-icon {
    position: relative;
    width: 50px;
    height: 50px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 2px;
    padding: 4px;
    background: linear-gradient(135deg, #E31E24 0%, #C41E3A 100%);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(227, 30, 36, 0.25);
    transition: all 0.3s ease;
}

.etihad-logo:hover .etihad-logo-icon {
    box-shadow: 0 6px 16px rgba(227, 30, 36, 0.35);
    transform: rotate(2deg);
}

/* Grid cells - الخلايا الشبكية */
.etihad-logo-icon::before,
.etihad-logo-icon::after {
    content: '';
    position: absolute;
}

/* Vertical lines */
.etihad-logo-icon::before {
    inset: 4px;
    background-image:
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.3) 0px,
            rgba(255, 255, 255, 0.3) 1px,
            transparent 1px,
            transparent 10px
        );
}

/* Horizontal lines */
.etihad-logo-icon::after {
    inset: 4px;
    background-image:
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.3) 0px,
            rgba(255, 255, 255, 0.3) 1px,
            transparent 1px,
            transparent 10px
        );
}

/* Alternative grid pattern using grid cells */
.etihad-logo-grid {
    position: relative;
    width: 50px;
    height: 50px;
    background: #E31E24;
    border-radius: 8px;
    padding: 6px;
    box-shadow: 0 4px 12px rgba(227, 30, 36, 0.25);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 3px;
    transition: all 0.3s ease;
}

.etihad-logo:hover .etihad-logo-grid {
    box-shadow: 0 6px 16px rgba(227, 30, 36, 0.35);
}

.etihad-logo-grid-cell {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    transition: all 0.2s ease;
}

.etihad-logo-grid-cell:nth-child(odd) {
    background: rgba(255, 255, 255, 0.35);
}

.etihad-logo:hover .etihad-logo-grid-cell {
    background: rgba(255, 255, 255, 0.5);
}

/* --------------------------------------------------------------------------
   LOGO TEXT
   نص الشعار
   -------------------------------------------------------------------------- */
.etihad-logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.etihad-logo-text-ar {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #E31E24;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.etihad-logo-text-en {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
}

/* Dark background variant */
.navbar-dark .etihad-logo-text-ar,
.bg-dark .etihad-logo-text-ar {
    color: #FFFFFF;
}

.navbar-dark .etihad-logo-text-en,
.bg-dark .etihad-logo-text-en {
    color: rgba(255, 255, 255, 0.7);
}

/* --------------------------------------------------------------------------
   LOGO SIZES
   أحجام مختلفة للوجو
   -------------------------------------------------------------------------- */

/* Small logo - for navbar when scrolled */
.etihad-logo-sm .etihad-logo-icon,
.etihad-logo-sm .etihad-logo-grid {
    width: 40px;
    height: 40px;
}

.etihad-logo-sm .etihad-logo-text-ar {
    font-size: 15px;
}

.etihad-logo-sm .etihad-logo-text-en {
    font-size: 9px;
}

/* Large logo - for hero section or footer */
.etihad-logo-lg .etihad-logo-icon,
.etihad-logo-lg .etihad-logo-grid {
    width: 70px;
    height: 70px;
}

.etihad-logo-lg .etihad-logo-text-ar {
    font-size: 24px;
}

.etihad-logo-lg .etihad-logo-text-en {
    font-size: 14px;
}

/* Extra large - for hero/landing */
.etihad-logo-xl .etihad-logo-icon,
.etihad-logo-xl .etihad-logo-grid {
    width: 90px;
    height: 90px;
    border-radius: 12px;
}

.etihad-logo-xl .etihad-logo-text-ar {
    font-size: 32px;
}

.etihad-logo-xl .etihad-logo-text-en {
    font-size: 16px;
}

/* --------------------------------------------------------------------------
   LOGO ICON ONLY (no text)
   أيقونة فقط بدون نص
   -------------------------------------------------------------------------- */
.etihad-logo-icon-only {
    width: 50px;
    height: 50px;
}

.etihad-logo-icon-only .etihad-logo-text {
    display: none;
}

/* --------------------------------------------------------------------------
   ANIMATED LOGO VARIANT
   نسخة متحركة من الشعار
   -------------------------------------------------------------------------- */
@keyframes gridPulse {
    0%, 100% {
        opacity: 0.25;
    }
    50% {
        opacity: 0.5;
    }
}

.etihad-logo-animated .etihad-logo-grid-cell {
    animation: gridPulse 2s ease-in-out infinite;
}

.etihad-logo-animated .etihad-logo-grid-cell:nth-child(1) {
    animation-delay: 0s;
}

.etihad-logo-animated .etihad-logo-grid-cell:nth-child(2) {
    animation-delay: 0.1s;
}

.etihad-logo-animated .etihad-logo-grid-cell:nth-child(3) {
    animation-delay: 0.2s;
}

.etihad-logo-animated .etihad-logo-grid-cell:nth-child(4) {
    animation-delay: 0.3s;
}

.etihad-logo-animated .etihad-logo-grid-cell:nth-child(5) {
    animation-delay: 0.4s;
}

.etihad-logo-animated .etihad-logo-grid-cell:nth-child(6) {
    animation-delay: 0.5s;
}

.etihad-logo-animated .etihad-logo-grid-cell:nth-child(7) {
    animation-delay: 0.6s;
}

.etihad-logo-animated .etihad-logo-grid-cell:nth-child(8) {
    animation-delay: 0.7s;
}

.etihad-logo-animated .etihad-logo-grid-cell:nth-child(9) {
    animation-delay: 0.8s;
}

.etihad-logo-animated .etihad-logo-grid-cell:nth-child(10) {
    animation-delay: 0.9s;
}

.etihad-logo-animated .etihad-logo-grid-cell:nth-child(11) {
    animation-delay: 1s;
}

.etihad-logo-animated .etihad-logo-grid-cell:nth-child(12) {
    animation-delay: 1.1s;
}

.etihad-logo-animated .etihad-logo-grid-cell:nth-child(13) {
    animation-delay: 1.2s;
}

.etihad-logo-animated .etihad-logo-grid-cell:nth-child(14) {
    animation-delay: 1.3s;
}

.etihad-logo-animated .etihad-logo-grid-cell:nth-child(15) {
    animation-delay: 1.4s;
}

.etihad-logo-animated .etihad-logo-grid-cell:nth-child(16) {
    animation-delay: 1.5s;
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN
   تصميم متجاوب
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .etihad-logo-icon,
    .etihad-logo-grid {
        width: 42px;
        height: 42px;
    }

    .etihad-logo-text-ar {
        font-size: 16px;
    }

    .etihad-logo-text-en {
        font-size: 10px;
    }

    .etihad-logo-lg .etihad-logo-icon,
    .etihad-logo-lg .etihad-logo-grid {
        width: 60px;
        height: 60px;
    }

    .etihad-logo-lg .etihad-logo-text-ar {
        font-size: 20px;
    }

    .etihad-logo-lg .etihad-logo-text-en {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .etihad-logo {
        gap: 12px;
    }

    .etihad-logo-icon,
    .etihad-logo-grid {
        width: 38px;
        height: 38px;
    }

    .etihad-logo-text-ar {
        font-size: 14px;
    }

    .etihad-logo-text-en {
        font-size: 9px;
    }
}

/* --------------------------------------------------------------------------
   LOGO HTML STRUCTURE EXAMPLE:
   --------------------------------------------------------------------------

   Grid Pattern Version (Recommended):
   <a href="/" class="etihad-logo">
       <div class="etihad-logo-grid">
           <div class="etihad-logo-grid-cell"></div>
           <div class="etihad-logo-grid-cell"></div>
           <div class="etihad-logo-grid-cell"></div>
           <div class="etihad-logo-grid-cell"></div>
           <div class="etihad-logo-grid-cell"></div>
           <div class="etihad-logo-grid-cell"></div>
           <div class="etihad-logo-grid-cell"></div>
           <div class="etihad-logo-grid-cell"></div>
           <div class="etihad-logo-grid-cell"></div>
           <div class="etihad-logo-grid-cell"></div>
           <div class="etihad-logo-grid-cell"></div>
           <div class="etihad-logo-grid-cell"></div>
           <div class="etihad-logo-grid-cell"></div>
           <div class="etihad-logo-grid-cell"></div>
           <div class="etihad-logo-grid-cell"></div>
           <div class="etihad-logo-grid-cell"></div>
       </div>
       <div class="etihad-logo-text">
           <span class="etihad-logo-text-ar">شركة الإتحاد</span>
           <span class="etihad-logo-text-en">El Etihad Plastic Industries</span>
       </div>
   </a>

   Simple Pattern Version:
   <a href="/" class="etihad-logo">
       <div class="etihad-logo-icon"></div>
       <div class="etihad-logo-text">
           <span class="etihad-logo-text-ar">شركة الإتحاد</span>
           <span class="etihad-logo-text-en">El Etihad Plastic Industries</span>
       </div>
   </a>

   -------------------------------------------------------------------------- */
