/**
 * Ecommerce GodFather Theme Styles
 * Базовые стили + кастомные классы
 * Tailwind подключается через CDN
 * 
 * @package EcommerceGodFather
 */

/* ============================================
   CSS Custom Properties (Theme Variables)
   ============================================ */
:root {
    /* Font Families */
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    
    /* Primary Colors (Sky) */
    --color-primary-50: #F0F9FF;
    --color-primary-100: #E0F2FE;
    --color-primary-200: #BAE6FD;
    --color-primary-300: #7DD3FC;
    --color-primary-400: #38BDF8;
    --color-primary-500: #0EA5E9;
    --color-primary-600: #0284C7;
    --color-primary-700: #0369A1;
    --color-primary-800: #075985;
    --color-primary-900: #0C4A6E;
    
    /* CTA Colors (Orange) */
    --color-cta-400: #FB923C;
    --color-cta-500: #F97316;
    --color-cta-600: #EA580C;
    
    /* Accent Colors */
    --color-accent-telegram: #26A5E4;
    --color-accent-max: #6366F1;
}

/* ============================================
   Base Styles
   ============================================ */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

/* ============================================
   Custom Scrollbar
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #0EA5E9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0284C7;
}

::selection {
    background: rgba(14, 165, 233, 0.3);
    color: #0c4a6e;
}

/* ============================================
   Glass Card Effect
   ============================================ */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* ============================================
   Animations
   ============================================ */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 6s ease-in-out infinite 3s;
}

/* ============================================
   Header Navigation Menu
   ============================================ */
header nav ul,
header .menu,
#header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

header nav ul li,
header .menu li,
#header nav ul li {
    list-style: none;
    margin: 0;
    padding: 0;
}

header nav ul a,
header .menu a,
#header nav ul a {
    display: inline-block;
}

/* ============================================
   Breadcrumbs
   ============================================ */
.egf-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.egf-breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.egf-breadcrumb-link:hover {
    color: #0EA5E9;
}

.egf-breadcrumb-link svg {
    flex-shrink: 0;
}

.egf-breadcrumb-separator {
    color: #cbd5e1;
    font-size: 0.875rem;
}

.egf-breadcrumb-separator::before {
    content: '›';
    font-size: 1.25rem;
    line-height: 1;
}

.egf-breadcrumb-current {
    color: #0EA5E9;
    font-weight: 500;
}

/* ============================================
   WordPress Specific Styles
   ============================================ */

/* Navigation Pagination */
.nav-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-links .page-numbers:hover {
    color: #0EA5E9;
    border-color: #7dd3fc;
    background-color: #f0f9ff;
}

.nav-links .page-numbers.current {
    color: #ffffff;
    background-color: #0EA5E9;
    border-color: #0EA5E9;
}

.nav-links .page-numbers.dots {
    border: none;
    background: none;
}

/* Prose styles for content */
.prose {
    color: #475569;
    line-height: 1.75;
}

.prose h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.prose h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.prose p {
    margin-bottom: 1.25rem;
}

.prose a {
    color: #0EA5E9;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.prose a:hover {
    border-bottom-color: #0EA5E9;
}

.prose code {
    background-color: #f1f5f9;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    color: #0369A1;
}

.prose pre {
    background-color: #0f172a;
    color: #f1f5f9;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.prose pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.prose blockquote {
    border-left: 4px solid #38BDF8;
    background-color: #f0f9ff;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 0.75rem 0.75rem 0;
    font-style: italic;
}

.prose ul, .prose ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.prose ul {
    list-style-type: disc;
}

.prose ol {
    list-style-type: decimal;
}

.prose li {
    margin: 0.5rem 0;
}

.prose img {
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    margin: 1.5rem 0;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.prose th, .prose td {
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    text-align: left;
}

.prose th {
    background-color: #f8fafc;
    font-weight: 600;
}

/* Comments */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list .comment {
    padding: 1.5rem;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.comment-list .children {
    list-style: none;
    padding-left: 2rem;
    margin-top: 1rem;
}

.comment-author {
    font-weight: 600;
    color: #1e293b;
}

.comment-meta {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.75rem;
}

/* Comment form */
.comment-respond {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.comment-reply-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.comment-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #334155;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #0EA5E9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.comment-form .submit {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(to right, #F97316, #EA580C);
    color: #ffffff;
    font-weight: 600;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.comment-form .submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(249, 115, 22, 0.3);
}

/* ============================================
   WeDocs Plugin Styles
   ============================================ */
.wedocs-single-wrap {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* ============================================
   Content Link Styles
   ============================================ */
.betterdocs-content a,
.wedocs-single-wrap a,
.prose a,
.entry-content a {
    color: #0EA5E9;
    text-decoration: none;
}

.betterdocs-content a:hover,
.wedocs-single-wrap a:hover,
.prose a:hover,
.entry-content a:hover {
    color: #0284C7;
    text-decoration: underline;
}
