/*
Theme Name: RateMe Club
Theme URI: https://info.rateme.club
Author: RateMe.Club
Author URI: https://rateme.club
Description: Custom WordPress theme for RateMe.Club - NFC Tags & QR Codes for More Google Reviews
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: rateme-club
Tags: custom, nfc, qr, reviews
*/

/* =============================================
   GOOGLE FONTS
   ============================================= */
@import url('https://fonts.googleapis.com/css?family=Poppins');
@import url('https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&display=swap');

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --secondary: #8b5cf6;
    --accent: #f59e0b;
    --success: #10b981;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border: #e2e8f0;
}

/* =============================================
   BASE RESET
   ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =============================================
   HEADER
   ============================================= */
header {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: relative;
    z-index: 100;
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-family: 'Syne', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
    text-decoration: none;
}

.logo span {
    color: var(--accent);
}

nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav.right-nav {
    margin-left: auto;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        color: var(--primary);
        text-shadow: 0 0 0px rgba(14, 165, 233, 0);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
        color: var(--accent);
        text-shadow: 0 0 12px rgba(245, 158, 11, 0.8);
    }
}

.shop-link span {
    animation: pulse 1.2s ease-in-out infinite;
    display: inline-block;
    font-weight: 700;
}

@media (max-width: 576px) {
    nav {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    nav a {
        font-size: 0.9rem;
        white-space: nowrap;
    }
}

/* =============================================
   HERO BANNER
   ============================================= */
.hero-banner {
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    color: black;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.3;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px 0 80px 0;
    max-width: clamp(280px, 60vw, 700px);
}

.hero-content h1,
.hero-content p,
.stat-number,
.stat-label {
    text-shadow:
        0 2px 4px rgba(148, 163, 184, 0.8),
        0 1px 2px rgba(71, 85, 105, 0.6),
        2px 2px 8px rgba(30, 41, 59, 0.4);
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.3);
}

.hero-content h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero-content p {
    font-size: clamp(0.8rem, 3vw, 2rem);
    opacity: 0.95;
    line-height: 1.7;
    margin-bottom: 10px;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
    align-items: center;
}

.stat {
    text-align: center;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 16px 24px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.2);
    min-width: 120px;
}

.stat-number {
    font-family: 'Syne', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    display: block;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.75rem;
    opacity: 0.95;
    line-height: 1.2;
}

/* =============================================
   PRODUCTS SECTION
   ============================================= */
.products-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-header h2 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-dark);
    letter-spacing: -1px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.product-card {
    background: var(--bg-white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(30px);
}

.product-card.fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.product-card.out-of-stock {
    opacity: 0.7;
}

.product-image {
    position: relative;
    width: 100%;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--accent);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.out-of-stock-banner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.85);
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.product-info {
    padding: 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.product-info h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
    line-height: 1.3;
}

.product-info p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

.product-features {
    list-style: none;
    margin: 20px 0;
    flex: 1;
}

.product-features li {
    padding-left: 28px;
    position: relative;
    margin-bottom: 12px;
    color: var(--text-light);
    line-height: 1.6;
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
    font-size: 1.1rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid var(--border);
}

.price {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.price-note {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 400;
    display: block;
    margin-top: 4px;
}

.add-to-cart {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(14, 165, 233, 0.4);
}

.add-to-cart:active {
    transform: translateY(0);
}

.add-to-cart:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    box-shadow: none;
}

/* =============================================
   INFO / ACCORDION SECTION
   ============================================= */
.info-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.accordion-item {
    border: none;
    border-radius: 20px !important;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}

.accordion-button {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    background-color: var(--bg-white);
    padding: 24px 32px;
    border: none;
    transition: all 0.3s ease;
}

.accordion-button.collapsed {
    background-color: #e9eae4;
    color: #1881b0;
}

.accordion-button.collapsed:hover {
    background-color: #1e293b;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
    color: var(--primary-dark);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-button::after {
    width: 24px;
    height: 24px;
    background-size: 24px;
}

.accordion-body {
    padding: 32px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.accordion-body h3,
.accordion-body strong {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 24px;
    margin-bottom: 16px;
}

.accordion-body ul {
    margin: 16px 0;
    padding-left: 24px;
}

.accordion-body li {
    margin-bottom: 12px;
}

.accordion-body img {
    max-width: 100%;
    height: auto;
    margin: 24px 0;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border: 1px solid var(--border);
}

.accordion-body a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

.accordion-body a:hover {
    color: var(--primary-dark);
}

/* =============================================
   PLACEMENT LISTS
   ============================================= */
.placement-list {
    list-style: none;
    padding-left: 0;
    margin: 24px 0;
}

.placement-list li {
    margin-bottom: 24px;
}

.placement-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.placement-item:hover {
    background: #e0f2fe;
    transform: translateX(8px);
}

.placement-text {
    flex: 1;
}

.placement-text strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.placement-img {
    width: 120px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .placement-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .placement-img {
        width: 200px;
        order: -1;
    }

    .placement-text strong {
        font-size: 1.2rem;
    }
}

/* =============================================
   PLATFORM LOGOS GRID
   ============================================= */
.platform-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 15px;
    margin: 40px 0;
    padding: 40px;
    background: var(--bg-white);
    border-radius: 16px;
}

.platform-logos img {
    width: 320px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    filter: grayscale(30%);
    transition: all 0.3s ease;
}

.platform-logos img:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* =============================================
   FOOTER
   ============================================= */
footer {
    background: var(--text-dark);
    color: white;
    padding: 64px 0 32px;
}

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

.footer-section h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 24px;
}

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    line-height: 2;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
}

/* =============================================
   LOADING / SPINNER
   ============================================= */
.loading {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.2rem;
    color: var(--text-light);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    display: none;
}

.loading-overlay img {
    width: 150px;
}

/* =============================================
   MODAL / CUSTOM ALERT
   ============================================= */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
}

.modal-content {
    background: white;
    padding: 25px;
    border-radius: 12px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
    animation: fadeIn 0.3s ease-in-out forwards;
}

.modal.hidden {
    display: none !important;
    visibility: hidden !important;
}

.close-button {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease-in-out;
}

.close-button:hover {
    opacity: 1;
}

#alertMessage {
    color: #333;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
}

#customAlert .modal-content button {
    margin-top: 20px;
    padding: 10px 30px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s ease;
}

#customAlert .modal-content button:hover {
    background: #1d4ed8;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: scale(1); }
    to   { opacity: 0; transform: scale(0.9); }
}
