/*
Theme Name: GSMArena Clone
Theme URI: https://yourwebsite.com/gsmarena-clone
Author: Your Name
Author URI: https://yourwebsite.com
Description: A comprehensive phone specifications and reviews theme similar to GSMArena
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gsmarena-clone
Tags: custom-colors, custom-menu, custom-logo, e-commerce, featured-images, threaded-comments, translation-ready
*/

/* Global Styles */
:root {
    --primary-color: #0066cc;
    --secondary-color: #ff6600;
    --dark-color: #1a1a1a;
    --light-color: #f5f5f5;
    --border-color: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background: #1a1a1a;
    color: #fff;
}

.top-bar {
    background: #000;
    padding: 8px 0;
    font-size: 12px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header {
    padding: 15px 0;
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-logo {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

.site-logo span {
    color: #ff6600;
}

/* Search Bar */
.search-bar {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.search-bar form {
    display: flex;
    gap: 0;
}

.search-bar input[type="search"] {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #333;
    border-radius: 25px 0 0 25px;
    background: #fff;
    font-size: 14px;
    outline: none;
}

.search-bar button {
    padding: 12px 25px;
    background: #0066cc;
    color: #fff;
    border: none;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: all 0.3s;
}

.search-bar button:hover {
    background: #0052a3;
}

.search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    margin-top: 5px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.search-results ul {
    list-style: none;
}

.search-results li {
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
}

.search-results li:hover {
    background: #f9f9f9;
}

.search-results a {
    color: #333;
    text-decoration: none;
    display: block;
}

/* Navigation */
.main-navigation {
    background: #2a2a2a;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.main-navigation ul li {
    position: relative;
}

.main-navigation ul li a {
    color: #fff;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    transition: all 0.3s;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
    background: #0066cc;
}

/* Phone Cards */
.phone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.phone-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

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

.phone-card img,
.placeholder-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    font-size: 48px;
    color: #ccc;
}

.phone-card-content {
    padding: 20px;
}

.phone-card-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    text-decoration: none;
    display: block;
}

.phone-card-title:hover {
    color: #0066cc;
}

.phone-specs-preview {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

.phone-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.phone-price {
    font-size: 20px;
    font-weight: bold;
    color: #ff6600;
}

.read-more-btn {
    padding: 8px 15px;
    background: #0066cc;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.read-more-btn:hover {
    background: #0052a3;
    color: #fff;
}

/* Pagination */
.pagination {
    margin: 30px 0;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 3px;
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

/* Sidebar */
.sidebar {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.widget {
    margin-bottom: 30px;
}

.widget-title {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* Footer */
.site-footer {
    background: #1a1a1a;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    color: #ff6600;
    margin-bottom: 15px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-column a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #888;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
    }
    
    .search-bar {
        margin: 15px 0;
        max-width: 100%;
    }
    
    .main-navigation ul {
        flex-direction: column;
    }
    
    .phone-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .site-content {
        flex-direction: column;
    }
}