/* WebHosting4U - Tailwind CSS Extensions */
/* ======================================= */

/* Force Fira Sans font family globally (font loaded via HTML link) */
* {
    font-family: 'Fira Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* FontAwesome icon fixes */
.fas, .fab, .far, .fa {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    font-weight: 900 !important;
    display: inline-block !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
}

    .domain-tile {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .domain-tile:hover {
        transform: translateY(-4px);
    }
    
    .domain-tile img {
        transition: all 0.3s ease;
    }
    
    .domain-tile:hover img {
        transform: scale(1.1);
    }
    
    /* Special offers badge animation */
    @keyframes badge-pulse {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.05); }
    }
    
    .special-badge {
        animation: badge-pulse 2s infinite;
    }
    
    /* Shimmer effect for premium domains */
    @keyframes shimmer {
        0% { background-position: -200% center; }
        100% { background-position: 200% center; }
    }
    
    .shimmer-bg {
        background: linear-gradient(90deg, 
            transparent 0%, 
            rgba(255,255,255,0.3) 50%, 
            transparent 100%);
        background-size: 200% 100%;
        animation: shimmer 3s linear infinite;
    }

/* Ensure consistent layout measurements */
/* ==================================== */

/* Header consistency */
header {
    height: 80px !important;
}

header .container {
    height: 80px !important;
}

/* Logo consistency - only logo images, NOT flags */
header > div > div > div > a > img:not([src*="flagcdn"]),
header a[href*="index"] > img:not([src*="flagcdn"]),
img[alt="WebHosting|4U"]:not([src*="flagcdn"]) {
    height: 48px !important;
    width: auto !important;
}

/* Language selector flags - FORCE small size with maximum specificity */
/* Target ALL possible combinations */
header img[alt*="Greek"],
header img[alt*="English"],
header img.w-4,
header img.h-3,
header img[src*="flagcdn.com/20x15"],
nav img[src*="flagcdn.com/20x15"],
button img[src*="flagcdn.com/20x15"],
a img[src*="flagcdn.com/20x15"],
img.w-4.h-3 {
    height: 12px !important;
    width: 16px !important;
    max-height: 12px !important;
    max-width: 16px !important;
    min-height: 12px !important;
    min-width: 16px !important;
    object-fit: contain !important;
}

/* Pricing Card Styles */
/* =================== */
.pricing-card-enhanced {
    background: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid #e2e8f0;
}

.pricing-card-enhanced:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-color: #dc431b;
}

.pricing-featured {
    background: #dc431b;
    color: white;
    border: none !important;
    transform: scale(1.05);
    box-shadow: 0 20px 40px -8px rgba(220, 67, 27, 0.3);
}

.pricing-featured:hover {
    transform: scale(1.05) translateY(-8px);
    box-shadow: 0 30px 60px -12px rgba(220, 67, 27, 0.4);
}

.pricing-featured h3,
.pricing-featured p,
.pricing-featured span:not(.price-number) {
    color: white !important;
}

.pricing-featured .text-slate-700 {
    color: rgba(255, 255, 255, 0.9) !important;
}

.pricing-featured .text-slate-600 {
    color: rgba(255, 255, 255, 0.8) !important;
}

.pricing-featured .text-slate-500 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.price-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: #464a54;
    color: white;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 0 0 12px 12px;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.price-number {
    color: #dc431b !important;
    text-shadow: 0 2px 4px rgba(220, 67, 27, 0.1);
}

.pricing-featured .price-number {
    color: white !important;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.2);
}

/* Button Styles */
/* ============= */
.cta-button {
    background: #dc431b;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(220, 67, 27, 0.3);
}

.cta-button:hover {
    background: #e85a2e;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(220, 67, 27, 0.4);
}

.btn-secondary {
    background: white;
    border: 2px solid #464a54;
    color: #464a54;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(70, 74, 84, 0.1);
}

.btn-secondary:hover {
    background: #464a54;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(70, 74, 84, 0.3);
}

/* Stats Number Animation */
/* ===================== */
.stats-number {
    color: #dc431b !important;
    animation: countUp 2s ease-out;
    text-shadow: 0 2px 4px rgba(220, 67, 27, 0.1);
}

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

/* Tech Icon Styles */
/* ================ */
.tech-icon {
    background: #464a54;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(70, 74, 84, 0.2);
}

.feature-card:hover .tech-icon {
    background: #dc431b;
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(220, 67, 27, 0.3);
}

/* Hero Section Improvements */
/* ========================= */
.gradient-text {
    color: #dc431b;
}

/* Trust Badge Improvements */
/* ======================== */
.trust-badge {
    background: rgba(34, 197, 94, 0.1);
    color: #059669;
    padding: 6px 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(34, 197, 94, 0.2);
    box-shadow: 0 2px 4px rgba(34, 197, 94, 0.1);
}

.guarantee-badge {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    padding: 8px 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

/* Navigation dropdown improvements */
/* ================================ */

/* Fix group hover states for dropdowns */
.group:hover .group-hover\:opacity-100 {
    opacity: 1 !important;
}

.group:hover .group-hover\:visible {
    visibility: visible !important;
}

.group:hover .group-hover\:translate-y-0 {
    transform: translateY(0) !important;
}

/* Responsive design fixes */
/* ====================== */

/* Ensure proper responsive behavior */
@media (max-width: 1279px) {
    .xl\:flex {
        display: none !important;
    }
    
    .xl\:hidden {
        display: block !important;
    }
}

@media (min-width: 1280px) {
    .xl\:flex {
        display: flex !important;
    }
    
    .xl\:hidden {
        display: none !important;
    }
}

/* Mobile responsive fixes */
@media (max-width: 639px) {
    .sm\:flex-row {
        flex-direction: column !important;
    }
    
    .sm\:gap-0 {
        gap: 1rem !important;
    }
    
    .pricing-featured {
        transform: none;
    }
    
    .pricing-featured:hover {
        transform: translateY(-8px);
    }
}

@media (min-width: 640px) {
    .sm\:flex-row {
        flex-direction: row !important;
    }
    
    .sm\:gap-0 {
        gap: 0 !important;
    }
}

/* Smooth scrolling */
/* ================ */
html {
    scroll-behavior: smooth;
}

/* Service Background Pattern */
/* ========================== */
.service-bg-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: 
        radial-gradient(circle at 20px 20px, rgba(255, 255, 255, 0.1) 1px, transparent 0),
        radial-gradient(circle at 60px 60px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
    background-size: 80px 80px;
    opacity: 0.3;
    z-index: 0;
}

.service-bg-pattern > * {
    position: relative;
    z-index: 1;
}

/* Trustpilot Widget Styles */
/* ======================== */
.trustpilot-box {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    text-decoration: none;
    color: white;
    transition: all 250ms ease-in-out;
}

.trustpilot-box:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.trustpilot-icon {
    height: 1.5rem;
    width: auto;
}

.trustpilot-stars {
    display: flex;
    align-items: center;
    gap: 0.125rem;
}

.trustpilot-star {
    width: 0.875rem;
    height: 0.875rem;
    background-color: #00b67a;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.trustpilot-star.partial {
    background: linear-gradient(to right, #00b67a 70%, #dcdce6 70%);
}

.trustpilot-score {
    font-weight: 700;
    color: white;
}

.trustpilot-reviews {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Focus states for accessibility */
/* ============================== */
a:focus,
button:focus {
    outline: 2px solid #dc431b;
    outline-offset: 2px;
}

/* Brand Color Utilities */
/* ==================== */
.text-brand-primary { color: #dc431b !important; }
.text-brand-primary-hover { color: #e85a2e !important; }
.text-brand-secondary { color: #464a54 !important; }
.text-brand-secondary-hover { color: #5a5f6b !important; }
.bg-brand-primary { background-color: #dc431b !important; }
.bg-brand-primary-hover { background-color: #e85a2e !important; }
.bg-brand-secondary { background-color: #464a54 !important; }
.bg-brand-secondary-hover { background-color: #5a5f6b !important; }
.border-brand-primary { border-color: #dc431b !important; }
.border-brand-secondary { border-color: #464a54 !important; }

/* Replace black colors with brand color */
.text-black { color: #464a54 !important; }
.text-slate-900 { color: #464a54 !important; }
.text-slate-800 { color: #464a54 !important; }
.text-slate-700 { color: #464a54 !important; }

/* Essential Design Classes */
/* ======================= */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.15);
}

/* Flag Standardization */
/* =================== */
/* Only apply to language switcher flags in navigation */
/* Datacenter flags should use their own sizing */

/* Print styles */
/* ============ */
@media print {
    .sticky {
        position: static !important;
    }
    
    .shadow-sm,
    .shadow-xl {
        box-shadow: none !important;
    }
    
    .backdrop-blur-sm {
        backdrop-filter: none !important;
    }
    
    /* Hide navigation elements when printing */
    nav,
    .xl\:hidden,
    button {
        display: none !important;
    }
} 