/**
 * HADCO Blog Page Styles
 * Modern design for Naver blog integration
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* Base Styles */
#hadco-blog-english,
#hadco-blog-korean {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000000;
    color: #E5E7EB;
    padding-top: 80px;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Hero Section */
.blog-hero {
    background: linear-gradient(135deg, #0A0F1A 0%, #1a1f2e 100%);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin-top: 0;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.blog-hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 64px;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-content .highlight {
    color: #0EA5E9;
    position: relative;
}

.hero-content p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    line-height: 1.6;
}

.blog-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #0EA5E9;
    color: #FFFFFF;
}

.btn-primary:hover {
    background: #0284C7;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.3);
}

.btn-outline {
    background: transparent;
    color: #0EA5E9;
    border: 2px solid #0EA5E9;
}

.btn-outline:hover {
    background: rgba(14, 165, 233, 0.1);
    transform: translateY(-2px);
}

.btn-primary-lg {
    padding: 16px 40px;
    font-size: 18px;
}

.btn svg {
    width: 20px;
    height: 20px;
}

/* Featured Topics Section */
.featured-topics {
    padding: 80px 0;
    background: #000000;
}

.section-title {
    text-align: center;
    font-size: 40px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 48px;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.topic-card {
    background: linear-gradient(135deg, #1a1f2e 0%, #0f1419 100%);
    border: 1px solid rgba(14, 165, 233, 0.1);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.topic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0EA5E9, #3B82F6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.topic-card:hover {
    transform: translateY(-5px);
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.1);
}

.topic-card:hover::before {
    transform: scaleX(1);
}

.topic-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.topic-card:hover .topic-icon {
    background: rgba(14, 165, 233, 0.2);
    transform: scale(1.1);
}

.topic-icon svg {
    width: 32px;
    height: 32px;
    color: #0EA5E9;
}

.topic-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 12px;
}

.topic-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* Blog Content Section */
.blog-content {
    padding: 80px 0;
    background: linear-gradient(180deg, #000000 0%, #0A0F1A 100%);
}

.blog-header {
    text-align: center;
    margin-bottom: 48px;
}

.blog-header h2 {
    font-size: 40px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.blog-header p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
}

/* Blog Frame Container */
.blog-frame-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #1a1f2e;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(14, 165, 233, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Frame Controls */
.frame-controls {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.control-btn {
    width: 40px;
    height: 40px;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #0EA5E9;
}

.control-btn:hover {
    background: rgba(14, 165, 233, 0.2);
    transform: scale(1.1);
}

.control-btn svg {
    width: 20px;
    height: 20px;
}

/* Iframe Wrapper */
.iframe-wrapper {
    position: relative;
    width: 100%;
    height: 800px;
    border-radius: 12px;
    overflow: hidden;
    background: #FFFFFF;
}

.iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Iframe Loader */
.iframe-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1a1f2e 0%, #0f1419 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(14, 165, 233, 0.2);
    border-top-color: #0EA5E9;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.iframe-loader p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
}

/* Blog CTA */
.blog-cta {
    margin-top: 24px;
    padding: 24px;
    background: rgba(14, 165, 233, 0.05);
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(14, 165, 233, 0.1);
}

.blog-cta p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
    font-size: 16px;
}

/* Subscribe Section */
.subscribe-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 100%);
    position: relative;
    overflow: hidden;
}

.subscribe-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.subscribe-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    position: relative;
    z-index: 1;
}

.subscribe-text h2 {
    font-size: 36px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.subscribe-text p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    max-width: 600px;
}

.subscribe-actions {
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 48px;
    }

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

    .subscribe-content {
        flex-direction: column;
        text-align: center;
    }

    .subscribe-text p {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .blog-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .topics-grid {
        grid-template-columns: 1fr;
    }

    .section-title,
    .blog-header h2 {
        font-size: 32px;
    }

    .iframe-wrapper {
        height: 600px;
    }

    .blog-frame-container {
        padding: 16px;
    }

    .subscribe-text h2 {
        font-size: 28px;
    }

    .subscribe-text p {
        font-size: 16px;
    }

    .featured-topics,
    .blog-content,
    .subscribe-section {
        padding: 60px 0;
    }

    .blog-hero {
        padding: 80px 0 60px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 28px;
    }

    .section-title,
    .blog-header h2 {
        font-size: 24px;
    }

    .iframe-wrapper {
        height: 500px;
    }

    .topic-card {
        padding: 24px;
    }

    .subscribe-text h2 {
        font-size: 24px;
    }
}
