/* Custom CSS for Irma Fashion Landing Page */

/* Global Styles */
body {
    font-family: 'Poppins', sans-serif;
    color: #333;
}

/* Hero Section Gradient */
.bg-gradient-to-b {
    background-image: linear-gradient(to bottom, #FFB6C1, #ffffff);
}

/* Product Card Styles */
.product-card {
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.new-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #FF69B4;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
}

/* Button Hover Effects */
.btn-hover-effect:hover {
    transform: scale(1.05);
}

/* Attractive Button Hover Effects */
.button-hover-shine {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.button-hover-shine:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.2);
    animation: pulse-light 1.5s infinite;
}

.button-hover-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transition: all 0.6s;
}

.button-hover-shine:hover::before {
    left: 100%;
}

/* Button pulse animation */
@keyframes pulse-light {
    0% {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    }
    100% {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
}

/* Semi-transparent Header */
.header-semi-transparent {
    background-color: rgba(31, 41, 55, 0.8) !important;
    backdrop-filter: blur(8px);
    transition: background-color 0.3s ease;
}

.header-semi-transparent:hover {
    background-color: rgba(31, 41, 55, 0.85) !important;
}

/* Admin Dashboard Styles */
.admin-sidebar {
    height: 100vh;
    position: sticky;
    top: 0;
}

.admin-content {
    min-height: 100vh;
}

/* Loading Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Hero Section Styles */
#hero-image {
    max-width: 100%;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    object-position: center;
    min-height: 450px;
    max-height: 600px;
}

#hero-image:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Hero Section Responsive Layout */
@media (max-width: 768px) {
    #hero-image {
        margin-top: 1.5rem;
        max-height: 450px;
        width: 100%;
    }
}

/* Responsive Typography */
@media (max-width: 768px) {
    html {
        font-size: 14px; /* Slightly smaller base font size for mobile */
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

/* Improved Mobile Spacing */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    #hero-image {
        margin-top: 1.5rem;
        max-height: 450px;
        width: 100%;
        min-height: 300px; /* Reduced min-height for mobile */
    }
}

/* Better Mobile Menu Experience */
@media (max-width: 768px) {
    .mobile-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: rgba(31, 41, 55, 0.95);
        z-index: 50;
        transition: right 0.3s ease;
        padding: 2rem 1.5rem;
        display: flex;
        flex-direction: column;
        backdrop-filter: blur(12px);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
        margin-top: 0;
        padding-top: 70px;
        overflow-y: auto; /* Allow scrolling if menu items are many */
    }
    
    .mobile-menu a {
        padding: 0.75rem 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .mobile-menu a:last-child {
        border-bottom: none;
    }
}

/* Touch-friendly Elements */
@media (max-width: 768px) {
    button, 
    .btn,
    a.btn,
    input[type="submit"] {
        min-height: 44px; /* Minimum touch target size */
        min-width: 44px;
    }
    
    .product-card {
        margin-bottom: 1.5rem;
    }
}

/* Improved Form Elements for Mobile */
@media (max-width: 768px) {
    input, 
    select, 
    textarea {
        font-size: 16px; /* Prevents iOS zoom on focus */
        padding: 0.75rem;
    }
    
    form .grid {
        gap: 1rem;
    }
}

/* Fix for images on mobile */
img {
    max-width: 100%;
    height: auto;
}

/* Contact Section Responsive Layout - Enhanced */
@media (max-width: 768px) {
    #kontak .flex-col {
        gap: 2rem;
    }
    
    .map-container {
        height: 300px; /* Smaller map on mobile */
    }
}

/* Improved WhatsApp Button Positioning for Mobile */
@media (max-width: 768px) {
    .wa-button {
        bottom: 1rem;
        right: 1rem;
        padding: 0.75rem;
    }
}

/* WhatsApp Button Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.wa-pulse {
    animation: pulse 2s infinite;
}

/* Mobile Menu Styles - Using Flowbite */
@media (max-width: 768px) {
    /* Custom styling for Flowbite navbar on mobile */
    #navbar-menu {
        background-color: rgba(31, 41, 55, 0.95);
        backdrop-filter: blur(12px);
        border-radius: 0.5rem;
        margin-top: 0.5rem;
    }
    
    #navbar-menu a {
        color: white;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    #navbar-menu a:hover {
        color: #FFB6C1;
    }
    
    #navbar-menu li:last-child a {
        border-bottom: none;
    }
}

/* Hamburger menu button animation */
#mobile-menu-button {
    transition: transform 0.3s ease;
}

#mobile-menu-button:hover {
    transform: scale(1.1);
}

/* Google Maps Styles */
.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.map-container:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Contact Section Responsive Layout */
@media (max-width: 768px) {
    #kontak .flex-col {
        gap: 2rem;
    }
}