/* Halal Scanner App Page Styles */
@import url('../../style.css');
/* Inherit base styles */

:root {
    --halal-green: #10B981;
    --halal-gold: #F59E0B;
    --halal-dark: #064E3B;
}

body {
    background-color: #000;
    /* Deep black override */
}

/* Hero Section Specifics */
.app-hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.app-hero-content {
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.app-logo-mark {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--halal-green);
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
    animation: pulse-green 3s infinite;
}

.app-title {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 4rem;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #fff 0%, var(--halal-green) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.app-tagline {
    font-family: 'JetBrains Mono', monospace;
    color: var(--halal-gold);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    display: block;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--halal-green);
    box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.2);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.feature-desc {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Download Section */
.download-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.store-badge {
    background: #fff;
    color: #000;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s;
}

.store-badge:hover {
    transform: scale(1.05);
}

.store-badge.android {
    background: var(--halal-green);
    color: #fff;
}

/* Mobile Mockup Placeholder */
.mobile-mockup {
    width: 300px;
    height: 600px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--halal-green);
    border-radius: 40px;
    margin: 4rem auto;
    position: relative;
    box-shadow: 0 0 50px rgba(16, 185, 129, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--halal-green);
    font-family: 'JetBrains Mono', monospace;
}

@keyframes pulse-green {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

footer {
    border-top: 1px solid rgba(16, 185, 129, 0.2);
}

/* --- Phone Mockup Styles --- */
.mobile-mockup {
    /* Existing styles are good foundation, just tweaking alignment */
    padding: 12px;
    background: #111;
    border-color: #333;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.phone-mockup {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    position: relative;
    /* Simulated Camera Feed Background */
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
        repeating-linear-gradient(45deg, #111 0, #111 10px, #222 10px, #222 20px);
    display: flex;
    flex-direction: column;
}

/* Status Bar */
.app-status-bar {
    height: 44px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    z-index: 10;
}

.status-icons {
    display: flex;
    gap: 6px;
}

.status-icons span {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
}

/* Scanner UI */
.scanner-ui {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    padding-bottom: 40px;
}

/* Scan Overlay */
.scan-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    width: 200px;
    height: 200px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.scan-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--halal-green);
    border-style: solid;
    border-width: 3px;
}

.top-left {
    top: -1px;
    left: -1px;
    border-right: 0;
    border-bottom: 0;
}

.top-right {
    top: -1px;
    right: -1px;
    border-left: 0;
    border-bottom: 0;
}

.bottom-left {
    bottom: -1px;
    left: -1px;
    border-right: 0;
    border-top: 0;
}

.bottom-right {
    bottom: -1px;
    right: -1px;
    border-left: 0;
    border-top: 0;
}

.scan-laser {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--halal-green);
    box-shadow: 0 0 10px var(--halal-green);
    animation: scanDown 2s infinite ease-in-out;
}

/* Result Card */
.scan-result-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    padding: 16px;
    border-radius: 12px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
    margin-bottom: 20px;
    transform: translateY(100px);
    animation: slideUp 0.5s 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

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

.result-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
}

.result-product {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Inter', sans-serif;
}

.result-brand {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.result-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    font-family: 'JetBrains Mono', monospace;
}

.result-badge.verified {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Scan Button Controls */
.scan-controls {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.scan-controls button {
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 50%;
    border: none;
    font-size: 0;
}