/*
Theme Name: Rewards Centre Theme
Theme URI: https://www.rewardscentre.in/
Author: Rohit Sharma
Author URI: https://www.rewardscentre.in/
Description: A custom, optimized WordPress theme for Rewards Centre.
Version: 3.1 (Final)
*/

/* ===================================================================
   1. GLOBAL STYLES & VARIABLES
=================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
:root { --primary-color: #007BFF; --dark-color: #2c3e50; --light-color: #ffffff; --grey-color: #f4f4f4; --font-family: 'Roboto', sans-serif; }
body { font-family: var(--font-family); margin: 0; padding: 0; background-color: var(--grey-color); color: var(--dark-color); }
.container { max-width: 1100px; margin: 15px auto; padding: 20px; }
a { text-decoration: none; color: var(--primary-color); }
ul { list-style: none; padding: 0; margin: 0; }
.btn { display: inline-block; padding: 12px 25px; border-radius: 8px; font-weight: bold; text-transform: uppercase; transition: all 0.3s ease; }
.btn-primary { background: var(--primary-color); color: var(--light-color); }
.btn-primary:hover { background: var(--dark-color); }
.section-title { text-align: center; font-size: 2.5rem; font-weight: 700; margin-bottom: 40px; color: var(--dark-color); }

/* ===================================================================
   2. HEADER & NAVIGATION
=================================================================== */
.site-header { background: var(--light-color); box-shadow: 0 2px 5px rgba(0,0,0,0.1); padding: 0 20px; }
.header-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; height: 70px; }
.site-logo { font-size: 1.8rem; font-weight: 700; letter-spacing: 1px; }
.site-logo span:first-child { color: var(--primary-color); }
.site-logo span:last-child { color: var(--dark-color); }
.main-navigation ul { display: flex; align-items: center; }
.main-navigation li a { display: flex; align-items: center; padding: 15px 20px; color: var(--dark-color); font-weight: 700; transition: color 0.3s ease, background-color 0.3s ease; }
.main-navigation li a:hover { color: var(--primary-color); background-color: var(--grey-color); }
.main-navigation li a i { margin-right: 8px; width: 20px; text-align: center; }

/* ===================================================================
   3. RESPONSIVE - MOBILE NAVIGATION
=================================================================== */
.menu-toggle { display: none; background: transparent; border: none; cursor: pointer; padding: 10px; position: relative; z-index: 110; }
.menu-toggle .line { display: block; width: 25px; height: 3px; background-color: var(--dark-color); margin: 5px 0; transition: all 0.3s ease-in-out; }
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .main-navigation ul { display: none; position: absolute; top: 70px; left: 0; width: 100%; background-color: var(--light-color); flex-direction: column; box-shadow: 0 2px 5px rgba(0,0,0,0.1); z-index: 100; align-items: flex-start; }
    .main-navigation.toggled ul { display: flex; }
    .main-navigation li a { border-bottom: 1px solid var(--grey-color); width: 100%; padding: 15px 20px; }
    .toggled .line:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
    .toggled .line:nth-child(2) { opacity: 0; }
    .toggled .line:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }
}

/* ===================================================================
   4. FOOTER STYLES
=================================================================== */
.site-footer { background-color: var(--dark-color); color: #a9a9a9; padding: 8px 20px; font-size: 0.9rem; }
.footer-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.footer-credits a { color: var(--light-color); font-weight: bold; }
.footer-navigation ul { display: flex; }
.footer-navigation li a { color: #a9a9a9; padding: 5px 15px; display: block; transition: color 0.3s ease; }
.footer-navigation li a:hover { color: var(--light-color); }
@media (max-width: 768px) {
    .footer-container { flex-direction: column; }
    .footer-navigation { order: 1; margin-bottom: 10px; }
    .footer-navigation ul { flex-wrap: wrap; justify-content: center; }
    .footer-navigation li a { padding: 5px 10px; }
    .footer-credits { order: 2; text-align: center; }
}

/* ===================================================================
   5. HOMEPAGE STYLES
=================================================================== */
.hero-section-pro { background: linear-gradient(45deg, #1e3a8a, #007BFF); color: #fff; padding: 60px 20px; text-align: center; }
.hero-content-pro { max-width: 800px; margin: 0 auto; }
.hero-content-pro h1 { font-size: 2.8rem; font-weight: 700; margin-bottom: 20px; }
.hero-content-pro p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 30px; }
.hero-buttons .btn { padding: 14px 28px; border-radius: 10px; font-weight: bold; text-transform: uppercase; transition: all 0.3s ease; }
.hero-buttons .btn-primary { background: #fff; color: #007BFF; }
.hero-buttons .btn-primary:hover { background: #e9ecef; transform: translateY(-2px); }

.features-section { padding: 60px 20px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; max-width: 1100px; margin: 0 auto; }
.feature-card { background: var(--light-color); padding: 30px; border-radius: 16px; text-align: center; box-shadow: 0 10px 25px rgba(0,0,0,0.08); }
.feature-card i { font-size: 3rem; color: var(--primary-color); margin-bottom: 20px; }
.feature-card h3 { font-size: 1.5rem; margin-bottom: 10px; color: var(--dark-color); }
.feature-card p { color: #6c757d; line-height: 1.6; }

.how-it-works-section { padding: 60px 20px; background-color: #e9ecef; }
.how-it-works-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; max-width: 1100px; margin: 0 auto; }
.step-card { text-align: center; }
.step-card span { display: inline-block; width: 50px; height: 50px; line-height: 50px; border-radius: 50%; background: var(--primary-color); color: #fff; font-weight: 700; font-size: 1.5rem; margin-bottom: 15px; }
.step-card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.step-card p { color: #6c757d; line-height: 1.6; }

.home-blog-section { padding: 60px 20px; }
.home-blog-footer { text-align: center; margin-top: 40px; }

.dashboard-pro { padding: 30px 0; }
.dashboard-pro-welcome { font-size: 2.2rem; margin-bottom: 25px; }
.dashboard-pro-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; margin-bottom: 50px; }
.dash-stat-card { color: #fff; padding: 25px; border-radius: 16px; position: relative; overflow: hidden; }
.dash-stat-card.wallet { background: linear-gradient(135deg, #007BFF, #0056b3); }
.dash-stat-card.referrals { background: linear-gradient(135deg, #16a34a, #15803d); }
.dash-stat-card.earnings { background: linear-gradient(135deg, #f59e0b, #d97706); }
.dash-stat-label { font-size: 16px; opacity: 0.8; }
.dash-stat-value { font-size: 36px; font-weight: 700; line-height: 1.2; margin: 5px 0 15px 0; }
.dash-stat-link { color: #fff; font-weight: 700; text-decoration: none; }

.quick-actions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.action-card { background: var(--light-color); padding: 25px; border-radius: 16px; box-shadow: 0 10px 25px rgba(0,0,0,0.08); transition: all 0.3s ease; text-align: center; color: var(--dark-color); }
.action-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.12); color: var(--primary-color); }
.action-card i { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 15px; }
.action-card h3 { font-size: 1.4rem; color: var(--dark-color); margin-bottom: 5px; }
.action-card p { color: #6c757d; }

@media (max-width: 768px) { .hero-content-pro h1 { font-size: 2.5rem; } }

/* ===================================================================
   6. SINGLE POST & PAGE STYLES
=================================================================== */
.single-post-layout .container { max-width: 800px; }
.page-container { background-color: var(--light-color); padding: 30px 40px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.featured-image-header { width: 100%; max-height: 400px; overflow: hidden; margin-bottom: 40px; }
.featured-image-header img { width: 100%; height: auto; }
.single-entry-header { text-align: center; margin-bottom: 40px; }
.post-categories { margin-bottom: 10px; }
.post-categories a { font-weight: bold; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; }
.entry-title-single { font-size: 3rem; margin: 0 0 15px 0; }
.post-meta-single { color: #666; font-size: 0.9rem; }
.post-meta-single span:not(:last-child)::after { content: '•'; margin: 0 10px; }
.post-meta-single a { color: #666; }
.post-meta-single a:hover { color: var(--primary-color); }
.entry-content { line-height: 1.8; font-size: 1.1rem; }
.entry-content p, .entry-content ul, .entry-content ol { margin-bottom: 1.5em; }
.entry-content h2, .entry-content h3 { margin-top: 2em; margin-bottom: 1em; }
.entry-footer { margin-top: 40px; padding-top: 20px; border-top: 1px solid #eee; }

/* ===================================================================
   7. ARCHIVE & BLOG STYLES (FINAL POLISHED 3D GRID)
=================================================================== */
.archive-header-pro { text-align: center; margin-bottom: 40px; }
.archive-title-pro { font-size: 2.8rem; font-weight: 700; color: var(--dark-color); }
.archive-description-pro { font-size: 1.1rem; color: #6c757d; margin-top: 10px; max-width: 600px; margin-left: auto; margin-right: auto; }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.blog-card {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.1), 0 4px 10px rgba(44, 62, 80, 0.08);
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    box-shadow: 0 12px 30px rgba(44, 62, 80, 0.15), 0 6px 15px rgba(44, 62, 80, 0.1);
}
.blog-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px 15px;
    font-size: 0.8rem;
    color: #6c757d;
    border-bottom: 1px solid #e9ecef;
}
.blog-card-categories a {
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
    background-color: #e7f5ff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    text-decoration: none;
}
.blog-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.blog-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.4;
    flex-grow: 1;
}
.blog-card-title a { color: var(--dark-color); text-decoration: none; }
.blog-card-title a:hover { color: var(--primary-color); }
.blog-card-excerpt { font-size: 0.95rem; line-height: 1.6; color: #495057; }
.blog-card-excerpt p { margin: 0; }
.blog-card-footer { padding: 20px 25px; margin-top: auto; text-align: center; border-top: 1px solid #e9ecef; }
.blog-card-readmore { font-weight: 700; color: var(--primary-color); text-decoration: none; }

.pagination { margin-top: 40px; }
.nav-links { display: flex; justify-content: center; gap: 8px; }
.page-numbers {
    padding: 8px 15px; border-radius: 8px; background: var(--light-color);
    border: 1px solid #dee2e6; color: var(--primary-color); font-weight: 700; text-decoration: none;
}
.page-numbers.current, .page-numbers:hover {
    background: var(--primary-color); color: var(--light-color); border-color: var(--primary-color);
}

@media (max-width: 1024px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .blog-grid { grid-template-columns: 1fr; } }

/* ===================================================================
   8. COMMENTS SECTION STYLES
=================================================================== */
#comments {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #e9ecef;
}
.comments-title, .comment-reply-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 30px;
}
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}
.comment-list .comment {
    padding: 20px;
    background: var(--light-color);
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}
.comment-list .children {
    list-style: none;
    padding-left: 20px; /* Indent replies */
}
.comment-author .avatar {
    border-radius: 50%;
    margin-right: 15px;
}
.comment-meta {
    margin-bottom: 10px;
}
.comment-author {
    font-weight: 700;
}
.comment-metadata a {
    font-size: 0.85rem;
    color: #6c757d;
}
.comment-content p {
    margin-bottom: 10px;
}
.reply .comment-reply-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Comment Form */
.comment-form {
    background: var(--light-color);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}
.comment-form p {
    margin-bottom: 15px;
}
.comment-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 5px;
}
.comment-form textarea, .comment-form input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    background-color: #fff;
    font-size: 16px;
    transition: all .2s ease-in-out;
}
.comment-form textarea:focus, .comment-form input[type="text"]:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25);
}
.form-submit .submit {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-bottom: 4px solid #0056b3;
    border-radius: 12px;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease-out;
}
.form-submit .submit:hover {
    background-color: #0084ff;
}

