/**
 * Course Article Styles - 집수리교육
 * Neon glow & tesseract design system
 */

/* Reset WordPress default styles for course pages */
.single-post .entry-content,
.single-post article {
    background: transparent !important;
    padding: 0 !important;
    max-width: 100% !important;
}

.single-post .entry-content > div.course-wrap {
    margin: 0 !important;
}

.single-post .site-content,
.single-post .content-area {
    background: #0a1628 !important;
    padding: 0 !important;
}

/* Hide default elements on course pages */
.single-post .entry-header,
.single-post .entry-footer,
.single-post .post-navigation,
.single-post .comments-area,
.single-post .entry-meta {
    display: none !important;
}

/* Course wrap container */
.course-wrap {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    line-height: 1.6 !important;
    color: #e0e0e0 !important;
}

.course-wrap h1,
.course-wrap h2,
.course-wrap h3,
.course-wrap h4 {
    line-height: 1.3 !important;
    margin: 0 !important;
}

.course-wrap p {
    margin: 0 !important;
}

.course-wrap a {
    text-decoration: none !important;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes rotate {
    from { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
    to { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

.pulse {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Hover effects */
.course-wrap a:hover {
    transform: translateY(-3px);
}

/* Grid system */
.course-wrap [style*="grid"] {
    display: grid !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .course-wrap h1 {
        font-size: 2rem !important;
    }

    .course-wrap [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    .course-wrap [style*="flex-wrap: wrap"] {
        flex-direction: column;
        align-items: stretch;
    }

    .course-wrap [style*="flex-wrap: wrap"] a {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .course-wrap [style*="padding: 60px"] {
        padding: 40px 20px !important;
    }

    .course-wrap [style*="padding: 80px"] {
        padding: 50px 20px !important;
    }
}

/* Dark theme consistency */
body.single-post {
    background: #0a1628 !important;
}

body.single-post #page,
body.single-post #content,
body.single-post .site {
    background: #0a1628 !important;
}

/* Fix WordPress admin bar offset */
body.admin-bar .course-wrap {
    margin-top: 0 !important;
}

/* Print styles */
@media print {
    .course-wrap {
        background: white !important;
        color: black !important;
    }

    .course-wrap a {
        color: black !important;
    }
}
