/*
 Theme Name:   GeneratePress Phone Child
 Template:     generatepress
 Version:      1.0
*/

/* --- 1. Variables (Default Colors) --- */
:root {
    --hero-bg: #111;       /* Dark Background */
    --accent: #0073aa;     /* Blue Button */
    --text-main: #333;
    --bg-light: #f4f6f8;
    --card-bg: #fff;
}

/* --- 2. Global Resets --- */
body {
    background-color: var(--bg-light);
    color: var(--text-main);
    font-family: system-ui, -apple-system, sans-serif;
}

/* Container width control */
.custom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 3. Hero Section (Homepage) --- */
.hero-section {
    background-color: var(--hero-bg); /* Admin se control hoga */
    color: #fff;
    padding: 80px 20px;
    text-align: center;
    margin-bottom: 40px;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.hero-search-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
}

.hero-search-form input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 16px;
}

.hero-search-form button {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

/* --- 4. Mobile Grid (Cards) --- */
.section-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    font-weight: 700;
}

.mobile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
    padding-bottom: 50px;
}

.mobile-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s;
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: block;
}

.mobile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.mobile-card img {
    height: 200px;
    object-fit: contain;
    margin-top: 20px;
}

.card-info {
    padding: 15px;
}

.card-info h3 {
    font-size: 1.1rem;
    margin: 10px 0;
}

.price {
    display: block;
    color: var(--accent);
    font-weight: bold;
    font-size: 1.2rem;
}

/* --- 5. Single Page Specification --- */
.spec-wrapper {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 30px;
    margin: 30px 0;
}

.mobile-header-area {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.mobile-img-box {
    flex: 1;
    text-align: center;
    min-width: 300px;
}

.mobile-quick-info {
    flex: 1.5;
}

/* Table Design */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.specs-table th, .specs-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.specs-table th {
    width: 30%;
    background: #f9f9f9;
    font-weight: 600;
    color: #555;
}

.group-heading {
    background: var(--hero-bg);
    color: #fff;
    padding: 10px;
    font-size: 1.2rem;
    margin-top: 30px;
    border-radius: 5px;
}

/* --- 6. AdSense Slots --- */
.ad-box {
    background: #e9e9e9;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
    border: 1px dashed #ccc;
    font-size: 12px;
    color: #999;
}