/* SmartRedeemID Smartphone Theme */
:root {
    --primary-blue: #1e40af;
    --secondary-blue: #3b82f6;
    --accent-green: #10b981;
    --warning-orange: #f59e0b;
    --danger-red: #ef4444;
    --gradient-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    --shadow-primary: 0 10px 25px rgba(0,0,0,0.15);
    --shadow-hover: 0 15px 35px rgba(0,0,0,0.25);
}

/* Hero Banner */
.hero-banner {
    background: var(--gradient-bg);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>') repeat;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

.badge-new {
    display: inline-block;
    background: var(--warning-orange);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #e5e7eb;
}

/* Features List */
.features-list {
    margin: 1.5rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.feature-item i {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem;
    border-radius: 50%;
    margin-right: 1rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Partner Badges */
.partner-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.badge-partner {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid white;
    background: rgba(255,255,255,0.2);
    color: white;
    transition: all 0.3s ease;
    display: inline-block;
}

.badge-partner:hover {
    background: white;
    color: var(--primary-blue);
    transform: translateY(-2px);
}

/* Partner badges in light background (form section) */
.main-card .partner-badges .badge-partner {
    border: 2px solid var(--primary-blue);
    background: var(--primary-blue);
    color: white;
}

.main-card .partner-badges .badge-partner:hover {
    background: var(--secondary-blue);
    border-color: var(--secondary-blue);
    color: white;
}

/* Product Showcase */
.product-showcase {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-gallery {
    position: relative;
    width: 100%;
    height: 100%;
}

.phone-item {
    position: absolute;
    background: linear-gradient(145deg, #1f2937, #374151);
    border: 3px solid #6366f1;
    border-radius: 25px;
    padding: 1.5rem 1rem;
    text-align: center;
    color: white;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: var(--shadow-primary);
}

.phone-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: var(--shadow-hover);
}

.phone-main {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 200px;
    z-index: 3;
}

.phone-second {
    top: 60%;
    left: 20%;
    transform: translate(-50%, -50%) rotate(-15deg);
    width: 120px;
    height: 180px;
    z-index: 2;
    opacity: 0.9;
}

.phone-third {
    top: 60%;
    right: 10%;
    transform: translate(50%, -50%) rotate(15deg);
    width: 120px;
    height: 180px;
    z-index: 1;
    opacity: 0.8;
}

.phone-screen {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.phone-label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.phone-price {
    font-size: 0.8rem;
    color: var(--accent-green);
    font-weight: bold;
}

/* Discount Floating Badge */
.discount-floating {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--danger-red);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    animation: bounce 2s infinite;
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.discount-text {
    font-size: 0.7rem;
}

.discount-number {
    font-size: 1.5rem;
    line-height: 1;
}

.discount-off {
    font-size: 0.7rem;
}

/* Featured Section */
.featured-section {
    background: var(--gradient-card);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-primary);
    margin-bottom: 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-blue);
    font-size: 2rem;
    font-weight: 800;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.product-card:hover::before {
    left: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-blue);
}

.product-image {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    border-radius: 10px;
    margin-bottom: 1rem;
}

.product-card h4 {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.product-price {
    margin-bottom: 1rem;
}

.price-original {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 0.9rem;
    display: block;
}

.price-discount {
    color: var(--danger-red);
    font-weight: bold;
    font-size: 1.2rem;
}

.product-store {
    background: var(--accent-green);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
}

/* Main Card Styling */
.main-card {
    background: var(--gradient-card);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-primary);
    margin-bottom: 2rem;
}

.voucher-section {
    text-align: center;
}

.voucher-title {
    color: var(--primary-blue);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.voucher-description {
    font-size: 1.1rem;
    color: #6b7280;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .phone-gallery {
        height: 300px;
    }
    
    .phone-item {
        width: 100px !important;
        height: 150px !important;
    }
    
    .phone-screen {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .discount-floating {
        width: 60px;
        height: 60px;
        top: 10px;
        right: 10px;
    }
    
    .discount-number {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        padding: 1.5rem 1rem;
    }
    
    .featured-section {
        padding: 1rem;
    }
    
    .main-card {
        padding: 1rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .partner-badges {
        justify-content: center;
    }
    
    .features-list {
        text-align: center;
    }
    
    /* Simple mobile voucher layout */
    .voucher-code-container {
        padding: 1rem 0.5rem;
        margin: 1rem 0;
    }
    
    .voucher-code {
        font-size: 1.2rem !important;
        padding: 1rem !important;
        background: #007bff !important;
        color: white !important;
        border: 2px dashed white !important;
        border-radius: 8px !important;
        font-family: monospace !important;
        font-weight: bold !important;
        letter-spacing: 1px !important;
        line-height: 1.4 !important;
        word-break: break-all !important;
        box-shadow: none !important;
        position: static !important;
    }
    
    .voucher-code::before {
        display: none !important;
    }
    
    .campaign-header {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .campaign-header h1 {
        font-size: 1.5rem;
    }
    
    .campaign-header .lead {
        font-size: 1rem;
    }
    
    .action-buttons {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin: 1rem 0;
    }
    
    .btn-action {
        flex: 1;
        min-width: calc(50% - 0.25rem);
        padding: 8px 12px;
        font-size: 0.8rem;
        border-radius: 6px;
        position: static;
    }
    
    .btn-action::before {
        display: none;
    }
    
    .p-4 {
        padding: 1rem !important;
    }
    
    .main-container {
        margin: 0.5rem;
    }
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

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

.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}

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

/* Loading States */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}