/* ==============================================
   BestCryptoPayApps - Crypto Dark Theme Styles
   ============================================== */

/*
Theme Name: BestCryptoPayApps
Theme URI: https://bestcryptopayapps.com
Description: A dark, crypto-trading-inspired WordPress theme for cryptocurrency payment app reviews and comparisons
Version: 1.0.0
Author: BestCryptoPayApps
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bestcryptopayapps
Domain Path: /languages
*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --color-primary-bg: #0f172a;
    --color-secondary-bg: #1e293b;
    --color-accent: #00C897;
    --color-text-primary: #FFFFFF;
    --color-text-secondary: #64748b;
    --color-border: #334155;
    --color-border-light: #475569;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.25);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(0, 200, 151, 0.5);
    --shadow-glow-sm: 0 0 10px rgba(0, 200, 151, 0.3);
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-primary-bg);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Header & Navigation */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--color-secondary-bg);
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(10px);
    transition: background-color var(--transition-base), box-shadow var(--transition-base);
}

.header.scrolled {
    background-color: rgba(30, 41, 59, 0.95);
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

@media (min-width: 1024px) {
    .nav {
        height: 5rem;
    }
}

.nav-logo .logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: -0.025em;
}

@media (min-width: 1024px) {
    .nav-logo .logo {
        font-size: 1.5rem;
    }
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }
}

.hamburger {
    width: 1.5rem;
    height: 2px;
    background-color: var(--color-text-primary);
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-toggle.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
}

.nav-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--color-secondary-bg);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    transition: right var(--transition-base);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    .nav-menu {
        position: static;
        flex-direction: row;
        width: auto;
        max-width: none;
        height: auto;
        padding: 0;
        box-shadow: none;
        gap: 2rem;
    }
}

.nav-menu.active {
    right: 0;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-primary);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--color-accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -0.25rem;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-base);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    margin-top: 1rem;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-primary-bg);
}

.btn-primary:hover {
    background-color: #00b589;
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-glow {
    box-shadow: var(--shadow-glow);
}

.btn-glow:hover {
    box-shadow: 0 0 30px rgba(0, 200, 151, 0.7);
}

.btn-table {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 4rem 0;
}

@media (min-width: 1024px) {
    .hero {
        min-height: 700px;
        padding: 6rem 0;
    }
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-primary-bg) 0%, var(--color-secondary-bg) 100%);
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, var(--color-accent) 0%, transparent 100%);
    opacity: 0.1;
    z-index: 1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

/* Ad Sections */
.ad-section {
    padding: 2rem 0;
}

.ad-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-md);
    background-color: rgba(30, 41, 59, 0.3);
}

@media (min-width: 1024px) {
    .ad-placeholder {
        min-height: 300px;
    }
}

.ad-placeholder.ad-large {
    min-height: 300px;
}

@media (min-width: 1024px) {
    .ad-placeholder.ad-large {
        min-height: 400px;
    }
}

.ad-label {
    font-size: 1rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Comparison Table Section */
.comparison-section {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .comparison-section {
        padding: 6rem 0;
    }
}

@media (min-width: 1024px) {
    .comparison-section {
        padding: 8rem 0;
    }
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 3rem;
    }
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin-bottom: 3rem;
}

.comparison-table-wrapper {
    border: 1px solid rgba(0, 200, 151, 0.3);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    box-shadow: var(--shadow-glow-sm);
    background-color: var(--color-secondary-bg);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.comparison-table thead {
    background-color: rgba(0, 200, 151, 0.1);
    border-bottom: 2px solid var(--color-accent);
}

.comparison-table th {
    padding: 1.25rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent);
}

.comparison-table tbody tr {
    border-bottom: 1px solid var(--color-border);
    transition: background-color var(--transition-base);
}

.comparison-table tbody tr:nth-child(even) {
    background-color: rgba(15, 23, 42, 0.3);
}

.comparison-table tbody tr:hover {
    background-color: rgba(0, 200, 151, 0.05);
}

.comparison-table td {
    padding: 1.5rem 1rem;
    vertical-align: middle;
}

.app-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 200px;
}

.app-logo {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
}

.app-name {
    font-size: 1.125rem;
    font-weight: 600;
    word-break: break-word;
}

.rating-cell {
    text-align: center;
    min-width: 120px;
}

.stars {
    color: var(--color-accent);
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.rating-text {
    display: block;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.bonus-cell {
    text-align: center;
    min-width: 130px;
}

.bonus-amount {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 0.25rem;
}

.bonus-label {
    display: block;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.features-cell {
    font-size: 0.875rem;
    min-width: 200px;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.features-list li {
    color: var(--color-text-primary);
}

.action-cell {
    text-align: center;
    min-width: 130px;
}

/* Blog Section */
.blog-section {
    padding: 4rem 0;
    background-color: var(--color-primary-bg);
}

@media (min-width: 768px) {
    .blog-section {
        padding: 6rem 0;
    }
}

@media (min-width: 1024px) {
    .blog-section {
        padding: 8rem 0;
    }
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

.blog-card {
    background-color: var(--color-secondary-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    cursor: pointer;
}

.blog-card:hover {
    border-color: rgba(0, 200, 151, 0.5);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--color-accent);
    color: var(--color-primary-bg);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-content {
    padding: 1.5rem;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-excerpt {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-accent);
    transition: gap var(--transition-fast);
}

.blog-link:hover {
    gap: 0.5rem;
}

/* Single Post */
.post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 0;
}

.post-header {
    margin-bottom: 2rem;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
    line-height: 1.2;
}

.post-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.post-category {
    display: inline-block;
    background-color: var(--color-accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-primary);
    margin-bottom: 3rem;
}

.post-divider {
    height: 1px;
    background-color: var(--color-border);
    margin: 3rem 0;
}

.related-section h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--color-text-primary);
}

.related-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.related-card {
    background-color: var(--color-secondary-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.related-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-accent);
}

.related-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-card-content {
    padding: 1.5rem;
}

.related-card-category {
    font-size: 0.8rem;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.related-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
}

.related-card-excerpt {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

.back-link {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.back-link:hover {
    text-decoration: underline;
}

/* Page Header */
.page-header {
    padding: 3rem 0;
    background-color: var(--color-secondary-bg);
    border-bottom: 1px solid var(--color-border);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--color-text-secondary);
}

/* Footer */
.footer {
    background-color: var(--color-secondary-bg);
    border-top: 1px solid var(--color-border);
    padding: 3rem 0 1.5rem;
}

@media (min-width: 1024px) {
    .footer {
        padding: 4rem 0 2rem;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
    }
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.footer-text {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}
