/* style.css - Custom Styles for ePrice.co.in 
    All visual styling for the template is defined here.
*/

/* --- Base & Layout --- */
body {
    font-family: sans-serif;
    background-color: #f3f4f6; 
    margin: 0;
    padding: 0;
    line-height: 1.5;
    color: #374151; 
}

.container {
    max-width: 1280px; 
    margin-left: auto;
    margin-right: auto;
    background-color: #ffffff; 
    min-height: 100vh;
}

.main-layout {
    display: grid;
    grid-template-columns: 1fr; /* Default: Single column for mobile */
    gap: 24px; 
    padding: 16px; 
}

/* Tablet and larger screens: two-column layout */
@media (min-width: 1024px) {
    .main-layout {
        grid-template-columns: 2fr 1fr; /* 2/3 main, 1/3 sidebar */
    }
}

/* --- Header & Navigation --- */
.main-header {
    padding: 16px; 
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    font-size: 24px;
    font-weight: 700;
    color: #4f46e5; 
    cursor: pointer;
}

.logo-img {
    height: 40px;
    display: inline-block;
}

.search-form {
    display: flex;
}

.search-input {
    padding: 8px;
    border: 1px solid #d1d5db; 
    border-radius: 6px 0 0 6px;
    width: 192px; 
}

.search-button {
    padding: 8px;
    background-color: #4f46e5; 
    color: white;
    border: none;
    border-radius: 0 6px 6px 0;
    transition: background-color 0.15s ease-in-out;
}

.search-button:hover {
    background-color: #4338ca; 
}

.search-icon {
    height: 24px;
    width: 24px;
}

/* --- Main Content (Article) --- */
.review-card {
    padding: 24px; 
    background-color: #ffffff;
    border-radius: 8px;
    /* Custom shadow definition (SEO-friendly class) */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.article-title {
    font-size: 30px;
    font-weight: 700;
    color: #111827; 
    margin-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
}

.article-meta {
    font-size: 14px;
    color: #6b7280; 
    margin-bottom: 24px;
}

.article-body h2 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
    color: #1f2937; 
}

.article-body p {
    margin-bottom: 16px;
}

.pull-quote {
    border-left: 4px solid #6366f1; 
    padding-left: 16px;
    font-style: italic;
    color: #4b5563; 
    margin: 24px 0;
}

.article-rating {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.rating-badge {
    display: inline-block;
    padding: 8px 16px;
    font-size: 20px;
    font-weight: 700;
    background-color: #047857; 
    color: white;
    border-radius: 8px;
}

/* --- Sidebar --- */
.right-sidebar {
    padding: 16px;
    background-color: #f9fafb; 
    border-left: 1px solid #e5e7eb; 
    overflow: hidden;
}

.sidebar-section {
    margin-bottom: 24px;
}

.sidebar-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937; 
    margin-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 4px;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    color: #4b5563;
}

.sidebar-list li {
    margin-bottom: 8px;
}

.sidebar-list a:hover {
    color: #4f46e5; 
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
}

.category-tag {
    background-color: #e0e7ff; 
    color: #3730a3; 
    padding: 4px 12px;
    border-radius: 9999px; 
    transition: background-color 0.15s;
}

.category-tag:hover {
    background-color: #c7d2fe; 
}

/* --- Advertising Area --- */
.ad-area-wrapper {
    width: 100%;
    padding: 32px 16px; 
    background-color: #eef2ff; 
    border-top: 1px solid #c7d2fe; 
    border-bottom: 1px solid #c7d2fe;
    margin-top: 32px; 
}

.ad-area-content {
    max-width: 896px; 
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.ad-area-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: #3730a3; 
    margin-bottom: 8px;
}

.ad-placeholder {
    background-color: #ffffff;
    padding: 16px;
    border: 1px dashed #818cf8; 
    color: #6b7280;
}

/* --- Footer --- */
.main-footer {
    background-color: #1f2937; 
    color: white;
    padding: 24px; 
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    max-width: 1152px; 
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
    }
}

.footer-nav {
    display: flex;
    gap: 16px; 
    margin-bottom: 16px; 
    font-size: 14px;
    color: #ffffff !important;
}

@media (min-width: 768px) {
    .footer-nav {
        margin-bottom: 0;
    }
}

/* FIX: Footer Navigation Link Colors (Normal State and Hover State) */

/* 1. **ADD THIS MISSING RULE** - Sets the color of the link when NOT hovered */
.footer-nav a {
    color: #ffffff !important; /* Forces the link text to white for high contrast */
    text-decoration: none;      /* Removes underline on normal state (optional) */
}

/* 2. **MODIFY THIS RULE** - Sets the color of the link when hovered */
.footer-nav a:hover {
    color: #a5b4fc !important; /* Change to a light color (e.g., light indigo) to show interaction */
    text-decoration: underline; /* Adds underline on hover (optional) */
}



.copyright {
    font-size: 14px;
    color: #ffffff; 
}

/* FINAL FIX: Ensure sidebar ad has internal padding (fixes white box margin issue) */
.right-sidebar .ad-area-wrapper {
    /* Add horizontal padding to the outer blue box to create space for the inner white box */
    padding-left: 10px !important;
    padding-right: 10px !important;
}

/* Ensure the inner white placeholder still expands to fill the padded space */
.right-sidebar .ad-placeholder {
    max-width: 100% !important;
}
