/* Blog Pages Styles - Geo-COMMERCE ™ */

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Animate on scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Blog Layout */
.blog-page {
    padding-top: 80px;
}

/* Blog Hero */
.blog-hero {
    background: var(--gradient-hero);
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.blog-hero .container {
    position: relative;
    z-index: 1;
}

.blog-hero h1 {
    font-size: 56px;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out;
}

.blog-hero p {
    font-size: 20px;
    color: rgba(255,255,255,0.9);
    max-width: 700px;
    margin: 0 auto 30px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.blog-hero .breadcrumb {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.blog-hero .breadcrumb a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.3s;
}

.blog-hero .breadcrumb a:hover {
    color: white;
    text-decoration: underline;
}

/* Blog Content */
.blog-content {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.blog-article {
    max-width: 900px;
    margin: 0 auto;
}

.blog-article h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 50px 0 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-article h3 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 40px 0 16px;
}

.blog-article p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.blog-article ul, .blog-article ol {
    margin: 20px 0;
    padding-left: 30px;
}

.blog-article li {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.blog-article li strong {
    color: var(--text-primary);
}

/* Highlight Box */
.highlight-box {
    background: var(--gradient-card);
    border-left: 4px solid var(--primary-color);
    padding: 30px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 30px 0;
}

.highlight-box p {
    font-size: 17px;
    color: var(--text-primary);
    font-weight: 500;
    margin: 0;
}

/* Feature Boxes in Blog */
.blog-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.blog-feature-card {
    background: var(--bg-primary);
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    animation: fadeInUp 0.6s ease-out both;
}

.blog-feature-card:nth-child(1) { animation-delay: 0.1s; }
.blog-feature-card:nth-child(2) { animation-delay: 0.2s; }
.blog-feature-card:nth-child(3) { animation-delay: 0.3s; }
.blog-feature-card:nth-child(4) { animation-delay: 0.4s; }
.blog-feature-card:nth-child(5) { animation-delay: 0.5s; }
.blog-feature-card:nth-child(6) { animation-delay: 0.6s; }

.blog-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.blog-feature-card .icon {
    font-size: 40px;
    margin-bottom: 16px;
    display: block;
}

.blog-feature-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.blog-feature-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* CTA Section in Blog */
.blog-cta {
    background: var(--gradient-hero);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-cta::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.blog-cta .container {
    position: relative;
    z-index: 1;
}

.blog-cta h2 {
    font-size: 42px;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out;
}

.blog-cta p {
    font-size: 20px;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Download Buttons */
.download-buttons {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin: 40px 0;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.download-btn:active {
    transform: translateY(-1px);
}

.download-btn.ios {
    background: #000;
    color: white;
}

.download-btn.android {
    background: var(--secondary-color);
    color: white;
}

.download-btn svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.download-btn .btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.download-btn .btn-small {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.8;
}

.download-btn .btn-large {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

/* Stats Banner */
.stats-banner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding: 60px 0;
    text-align: center;
}

.stat-item {
    animation: bounceIn 0.8s ease-out both;
}

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Blog Navigation */
.blog-nav {
    background: var(--bg-primary);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.blog-nav-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.blog-nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 15px;
    padding: 8px 20px;
    border-radius: 30px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.blog-nav-links a:hover,
.blog-nav-links a.active {
    color: var(--primary-color);
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 20px 0;
}

.lang-btn {
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    background: var(--bg-primary);
}

.lang-btn:hover, .lang-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Testimonial */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.testimonial-card {
    background: var(--bg-primary);
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 60px;
    color: var(--primary-color);
    opacity: 0.3;
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: serif;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 15px;
}

.testimonial-role {
    font-size: 13px;
    color: var(--text-light);
}

/* Blog Footer */
.blog-footer {
    background: var(--text-primary);
    color: white;
    padding: 60px 0 30px;
}

.blog-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.blog-footer h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.blog-footer p {
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    font-size: 15px;
}

.blog-footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    font-size: 15px;
    transition: color 0.3s;
}

.blog-footer a:hover {
    color: var(--primary-color);
}

.blog-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-hero h1 { font-size: 36px; }
    .blog-hero p { font-size: 17px; }
    .blog-cta h2 { font-size: 30px; }
    .blog-article h2 { font-size: 28px; }
    .blog-article h3 { font-size: 22px; }
    .blog-features { grid-template-columns: 1fr; }
    .download-buttons { flex-direction: column; align-items: center; }
    .stats-banner { grid-template-columns: repeat(2, 1fr); }
    .stat-number { font-size: 36px; }
    .blog-footer-grid { grid-template-columns: 1fr; }
    .testimonial-grid { grid-template-columns: 1fr; }
}
