@import './colors.css'; /* Import the colors file */

:root {
    --e-global-color-primary: var(--color-primary);
    --e-global-color-secondary: var(--color-secondary);
    --e-global-color-text: var(--color-text);
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-hover-bg: rgba(255, 255, 255, 0.08);
    --transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    @apply relative min-h-[50vh] flex items-center justify-center bg-[var(--bg-color)];
    background-size: cover;
    background-position: center;
}

.hero-content {
    @apply container mx-auto px-4 text-center py-24;
}

.hero-title {
    @apply text-4xl md:text-5xl font-bold text-white mb-6;
}

.hero-subtitle {
    @apply text-xl text-gray-300 max-w-2xl mx-auto;
}

.video-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.video-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0.9) 0%,
        rgba(0,0,0,0.5) 50%,
        rgba(0,0,0,0.9) 100%
    );
    z-index: 10;
}

.video-wrapper video,
.video-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* Locations Grid */
.locations-section {
    padding: 5rem 1rem;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.location-card {
    background: var(--card-bg);
    border-radius: 1rem;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(241, 227, 200, 0.1);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.location-card:nth-child(2) { animation-delay: 0.2s; }
.location-card:nth-child(3) { animation-delay: 0.4s; }
.location-card:nth-child(4) { animation-delay: 0.6s; }

.location-card:hover {
    transform: translateY(-5px);
    background: var(--card-hover-bg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.location-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.location-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.location-card:hover .location-image img {
    transform: scale(1.05);
}

.icon-map {
    color: var(--color-secondary);
}

.location-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--e-global-color-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.location-status i {
    color: var(--e-global-color-primary);
}

.location-content {
    padding: 1.5rem;
    background: rgba(24, 24, 27, 0.95);
}

.location-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.location-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
}

.location-address {
    font-size: 0.9rem;
    color: var(--e-global-color-text);
    opacity: 0.8;
}

.features-section {
    margin-bottom: 1.5rem;
}

.features-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--e-global-color-text);
    margin-bottom: 0.75rem;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.feature-tag i {
    font-size: 1rem;
}

.feature-tag.halal {
    background: rgba(34, 197, 94, 0.1);
    color: rgb(34, 197, 94);
}

.feature-tag.rooms {
    background: rgba(59, 130, 246, 0.1);
    color: rgb(59, 130, 246);
}

.feature-tag.parking {
    background: rgba(234, 179, 8, 0.1);
    color: rgb(234, 179, 8);
}

.feature-tag.business {
    background: rgba(168, 85, 247, 0.1);
    color: rgb(168, 85, 247);
}

.feature-tag.student {
    background: rgba(236, 72, 153, 0.1);
    color: rgb(236, 72, 153);
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
    transition: all 0.3s ease;
    text-align: center;
}

.action-button:not(.disabled):hover {
    transform: translateY(-2px);
    filter: brightness(1.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.action-button:hover {
    color:black;
}
.action-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Action button variants with brand colors */
.action-button.phone {
    background: var(--color-phone);
}

.action-button.whatsapp {
    background: var(--color-whatapp);
}

.action-button.maps {
    background: var(--color-google);
}

.action-button.waze {
    background: var(--color-waze);
}

.action-button.grab {
    background: var(--color-grab);
}

.action-button.beepit {
    background: var(--color-beepit);
}

/* Coming Soon Styles */
.location-card.coming-soon {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    /* border: 1px dashed rgba(241, 227, 200, 0.2); */
}

.location-card.coming-soon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, 
        rgba(var(--color-secondary-rgb), 0.05) 0%,
        rgba(var(--color-primary-rgb), 0.05) 100%
    );
    z-index: 0;
}

/* .location-card.coming-soon .location-image img {
    filter: grayscale(100%) brightness(0.7);
} */

.location-status.coming-soon {
    background: rgba(var(--color-secondary-rgb), 0.95);
    color: white;
}

.location-status.coming-soon i {
    color: white;
}

.feature-tag.coming-soon {
    background: rgba(var(--color-secondary-rgb), 0.1);
    color: var(--color-secondary);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .hero-section {
        min-height: 50vh;
        padding: 5rem 0 2rem;
    }

    .locations-section {
        padding: 3rem 1rem;
    }

    .locations-grid {
        gap: 1.5rem;
    }

    .location-content {
        padding: 1.2rem;
    }

    .location-title {
        font-size: 1.3rem;
    }

    .actions-grid {
        gap: 0.4rem;
    }

    .action-button {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        min-width: 100px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--e-global-color-text);
    opacity: 0.8;
    font-size: clamp(1rem, 3vw, 1.1rem);
}

.features-section {
    display: none;
}   