/*
Theme Name: CryptoVN
Description: Professional cryptocurrency referral website theme for Vietnamese market with Binance and OKX integration
Version: 1.0.0
Author: CryptoVN Team
Text Domain: cryptovn
*/

/* WordPress Required Styles */
.alignleft {
    float: left;
    margin-right: 1rem;
}

.alignright {
    float: right;
    margin-left: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    margin-top: 0.5rem;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Gallery Styles */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.gallery-item {
    flex: 1 1 auto;
}

.gallery-caption {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    margin-top: 0.5rem;
}

/* Comment Styles */
.commentlist {
    list-style: none;
    padding: 0;
}

.commentlist .comment {
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}

.comment-author {
    font-weight: 600;
}

.comment-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.comment-content {
    margin-bottom: 1rem;
}

.reply {
    text-align: right;
}

/* Pagination Styles */
.page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.page-numbers:hover,
.page-numbers.current {
    background: #4F46E5;
    color: white;
    border-color: #4F46E5;
}

/* WordPress Block Editor Styles */
.wp-block-group {
    margin-bottom: 2rem;
}

.wp-block-columns {
    display: flex;
    gap: 2rem;
}

.wp-block-column {
    flex: 1;
}

.wp-block-quote {
    border-left: 4px solid #4F46E5;
    padding-left: 1rem;
    margin: 2rem 0;
    font-style: italic;
}

.wp-block-pullquote {
    text-align: center;
    font-size: 1.25rem;
    border-top: 4px solid #4F46E5;
    border-bottom: 4px solid #4F46E5;
    padding: 2rem 0;
    margin: 2rem 0;
}

.wp-block-button .wp-block-button__link {
    background: #4F46E5;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.wp-block-button .wp-block-button__link:hover {
    background: #3730A3;
    transform: translateY(-2px);
}

/* Admin Bar Compatibility */
.admin-bar .header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .header {
        top: 46px;
    }
}

/* Responsive Embeds */
.wp-block-embed,
.wp-block-embed__wrapper {
    position: relative;
    overflow: hidden;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
}

.wp-block-embed iframe,
.wp-block-embed object,
.wp-block-embed embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .floating-cta,
    .back-to-top,
    .article-tools,
    .toc-sidebar {
        display: none;
    }
    
    .article-main {
        margin-left: 0;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    p, li {
        page-break-inside: avoid;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .gradient-text {
        background: none;
        color: #000;
    }
    
    .btn {
        border: 2px solid #000;
    }
    
    .article-card,
    .feature-card {
        border: 2px solid #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .crypto-icons .crypto-icon {
        animation: none;
    }
    
    .btn {
        transform: none !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1a1a1a;
        --text-color: #ffffff;
        --card-bg: #2a2a2a;
        --border-color: #404040;
    }
    
    body {
        background-color: var(--bg-color);
        color: var(--text-color);
    }
    
    .article-card,
    .feature-card,
    .faq-item {
        background: var(--card-bg);
        border-color: var(--border-color);
    }
    
    .header {
        background: rgba(26, 26, 26, 0.95);
        backdrop-filter: blur(10px);
    }
    
    .footer {
        background: #111;
    }
}

/* Accessibility Improvements */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Focus Indicators */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid #4F46E5;
    outline-offset: 2px;
}

/* Keyboard Navigation */
.nav-menu a:focus,
.btn:focus {
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3);
}

/* Text Selection */
::selection {
    background: #4F46E5;
    color: white;
}

::-moz-selection {
    background: #4F46E5;
    color: white;
} 