@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --radius: 20px;
    --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

* { box-sizing: border-box; transition: all 0.3s ease; }

body {
    background: var(--bg-gradient);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    color: var(--text-main);
}

.container { width: 100%; max-width: 850px; }

h1 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.header-icon { color: var(--primary); width: 40px; height: 40px; }

/* SEARCH SECTION */
.search-card {
    background: rgba(255, 255, 255, 0.8);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
    margin-bottom: 25px;
    border: 1px solid #fff;
}

.search-group { display: flex; gap: 10px; }

.search-group input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
}

.search-group input:focus { border-color: var(--primary); }

/* ADS SECTION - FIXED WIDTH */
.ads-container {
    margin: 25px 0;
    width: 100% !important;
    min-height: 250px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    overflow: hidden;
    display: block;
}

.adsbygoogle { display: block !important; width: 100% !important; }

/* CARDS */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    overflow: hidden;
}

.device-header { display: grid; grid-template-columns: 1fr 1.5fr; align-items: center; }

.device-image {
    background: #f8fafc;
    padding: 40px;
    text-align: center;
    border-right: 1px solid #f1f5f9;
}

.device-image img {
    max-width: 100%;
    animation: float 5s ease-in-out infinite;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
}

.device-info { padding: 40px; }

.brand { color: var(--primary); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 2px; }

.model { font-size: 2rem; margin: 10px 0; font-weight: 800; }

.imei-badge {
    background: #eef2ff;
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 99px;
    font-family: monospace;
    font-weight: 700;
}

/* SPECS */
.specs-container { padding: 30px 40px; }

.spec-header {
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

.spec-title { color: var(--text-muted); }
.spec-content { font-weight: 600; }

/* BUTTON */
.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: pulse 2s infinite;
}

/* ANIMATIONS */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes fadeIn {
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .device-header { grid-template-columns: 1fr; }
    .device-image { border-right: none; border-bottom: 1px solid #f1f5f9; }
    .search-group { flex-direction: column; }
}
