/*
Theme Name: Shoes Advisors - Professional Shoe Guide
Description: A professional WordPress child theme for shoe advice and recommendations, designed for Google AdSense approval with substantial content and educational tools.
Author: Shoes Advisors Team
Template: oceanwp
Version: 1.0.0
Text Domain: shoesadvisors-com
Tags: shoes, fashion, advice, tools, responsive, professional
*/

/* Import Parent Theme Styles */
@import url("../oceanwp/style.css");

/* Professional Color Scheme for AdSense Approval */
:root {
    /* Primary Brand Colors - Professional & Trustworthy */
    --primary-color: #2C3E50;        /* Deep navy - professional */
    --secondary-color: #E74C3C;      /* Rich red - shoe accent */
    --accent-color: #F39C12;         /* Warm orange - highlights */
    --success-color: #27AE60;        /* Professional green */
    --warning-color: #F39C12;        /* Attention orange */
    --danger-color: #E74C3C;         /* Error red */

    /* Content Colors */
    --text-primary: #2C3E50;         /* Dark readable text */
    --text-secondary: #7F8C8D;       /* Secondary text */
    --text-muted: #95A5A6;           /* Muted text */
    --text-white: #FFFFFF;           /* White text */

    /* Background Colors */
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-gray: #ECF0F1;
    --bg-dark: #2C3E50;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    /* Borders and Shadows */
    --border-color: #E0E6ED;
    --border-radius: 8px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);

    /* Spacing System */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Global Typography - Professional & Readable */
body {
    font-family: var(--font-family);
    font-size: var(--font-size-md);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-white);
}

/* Professional Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-md); }

/* Professional Links */
a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Professional Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: var(--font-size-md);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-normal);
    cursor: pointer;
    min-height: 44px;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--text-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: #C0392B;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    color: var(--text-white);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--primary-color);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
}

/* Professional Cards */
.card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* Professional Container System */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Professional Grid System */
.grid {
    display: grid;
    gap: var(--spacing-lg);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Professional Section Styling */
.section {
    padding: var(--spacing-2xl) 0;
}

.section-gray {
    background-color: var(--bg-light);
}

.section-dark {
    background-color: var(--bg-dark);
    color: var(--text-white);
}

/* Tool Interface Styling */
.tool-container {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    margin: var(--spacing-lg) 0;
}

.tool-form {
    display: grid;
    gap: var(--spacing-md);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: var(--font-size-md);
    transition: var(--transition-fast);
    min-height: 44px;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-select {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 12px;
    padding-right: 40px;
}

/* Tool Results Display */
.tool-results {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-color);
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.result-value {
    font-weight: 600;
    font-size: var(--font-size-lg);
    color: var(--primary-color);
}

/* Professional Navigation Enhancements */
#site-navigation-wrap {
    box-shadow: var(--shadow-sm);
}

.dropdown-menu > li > a {
    color: var(--text-primary);
    padding: 12px 20px;
    transition: var(--transition-fast);
}

.dropdown-menu > li > a:hover {
    background-color: var(--bg-light);
    color: var(--secondary-color);
}

/* Professional Footer */
#footer-widgets {
    background: var(--bg-dark);
    color: var(--text-white);
}

#footer-widgets h4 {
    color: var(--text-white);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

/* Responsive Design for Mobile-First AdSense Approval */
@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .tool-container {
        padding: var(--spacing-md);
    }
    
    h1 { font-size: var(--font-size-3xl); }
    h2 { font-size: var(--font-size-2xl); }
    h3 { font-size: var(--font-size-xl); }
    
    .btn {
        width: 100%;
        margin-bottom: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    h1 { font-size: var(--font-size-2xl); }
    h2 { font-size: var(--font-size-xl); }
    
    .tool-container {
        padding: var(--spacing-sm);
    }
}

/* AdSense Preparation - Ad Spaces */
.ad-space {
    text-align: center;
    padding: var(--spacing-md);
    margin: var(--spacing-lg) 0;
    background: var(--bg-light);
    border: 1px dashed var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-muted);
}

.ad-space::before {
    content: "Advertisement";
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Trust Signals for AdSense Approval */
.trust-signals {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin: var(--spacing-md) 0;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--bg-light);
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

/* Professional Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border-color);
    border-radius: 50%;
    border-top-color: var(--secondary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Accessibility Improvements for AdSense */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles for Accessibility */
.btn:focus,
.form-control:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --text-secondary: #000000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Tool Statistics Widget */
.tool-statistics-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 60px 0;
    margin: 60px 0;
}

.tool-statistics-widget {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.stats-header {
    margin-bottom: 40px;
}

.stats-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.stats-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.stats-grid .stat-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-normal);
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

.stats-grid .stat-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.stats-grid .stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #F39C12;
    text-align: right;
    line-height: 1;
}

.stats-grid .stat-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: white !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.stats-grid .stat-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

.stats-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.update-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.update-icon {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stats-grid .stat-item {
        padding: 20px 15px;
    }
    
    .stats-grid .stat-value {
        font-size: 2rem;
    }
    
    .stats-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Breadcrumb Navigation Styling */
.breadcrumbs {
    margin-bottom: 20px;
}

.breadcrumbs ol {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
    content: ">";
    margin-left: 8px;
    color: var(--text-muted);
    font-weight: bold;
}

.breadcrumbs a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

.breadcrumbs a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.breadcrumbs li:last-child span {
    color: var(--text-muted);
    font-weight: 500;
}

/* Hero breadcrumbs styling */
.hero-breadcrumbs .breadcrumbs a {
    color: rgba(255, 255, 255, 0.9);
}

.hero-breadcrumbs .breadcrumbs a:hover {
    color: white;
}

.hero-breadcrumbs .breadcrumbs li:not(:last-child)::after {
    color: rgba(255, 255, 255, 0.7);
}

.hero-breadcrumbs .breadcrumbs li:last-child span {
    color: rgba(255, 255, 255, 0.8);
}

/* Text Contrast Fixes - Ensure Readability */
/* Default text on white backgrounds */
.section:not(.section-dark),
.card:not(.hero-card),
.tool-card,
.testimonial-card,
.post-card,
.widget,
.legal-article,
.contact-form,
.app-interface,
.breadcrumbs:not(.hero-breadcrumbs) {
    color: var(--text-primary);
}

/* Ensure headings are readable on white backgrounds */
.section:not(.section-dark) h1,
.section:not(.section-dark) h2,
.section:not(.section-dark) h3,
.section:not(.section-dark) h4,
.section:not(.section-dark) h5,
.section:not(.section-dark) h6 {
    color: var(--primary-color);
}

/* Ensure section-dark has proper white text */
.section-dark,
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6,
.section-dark p,
.section-dark .section-title {
    color: var(--text-white) !important;
}

/* Form elements should have dark text on light backgrounds */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="number"],
textarea,
select {
    background: var(--bg-white);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

/* Button text should be readable */
.btn-primary {
    background: var(--secondary-color);
    color: var(--text-white);
}

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

/* Ensure footer text is readable */
.site-footer {
    background: var(--bg-dark);
    color: var(--text-white);
}

/* Fix any remaining white text on white background issues */
.hero-content:not(.section-dark) {
    color: var(--text-primary);
}

/* Gradient backgrounds should have white text */
.hero-section,
.tools-hero,
.contact-hero,
.newsletter-section,
[style*="background: linear-gradient"],
[style*="background-image: linear-gradient"] {
    color: var(--text-white);
}

.hero-section h1,
.hero-section h2,
.hero-section h3,
.tools-hero h1,
.tools-hero h2,
.contact-hero h1,
.contact-hero h2 {
    color: var(--text-white);
}

/* Testimonial text readability fix */
.testimonial-text,
.testimonial-card p,
.testimonial-content p {
    color: var(--text-primary) !important;
    font-weight: 400;
}

.testimonial-card {
    background: var(--bg-white);
    color: var(--text-primary);
}

/* Tool Statistics Text Contrast Fix */
.tool-statistics-section .stat-label,
.tool-statistics-section .stats-grid .stat-label {
    color: white !important;
    font-weight: 600;
    opacity: 1;
}

.tool-statistics-section .stat-description,
.tool-statistics-section .stats-grid .stat-description {
    color: rgba(255, 255, 255, 0.9) !important;
}

.tool-statistics-section .stat-value,
.tool-statistics-section .stats-grid .stat-value {
    color: #F39C12 !important;
}