/*
 * Additional Custom Styles for Godstruck Kids Theme
 */

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    animation: fadeInUp 0.8s ease forwards;
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid var(--color-primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Signup Message Styles */
.signup-message {
    padding: 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
}

.signup-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.signup-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Audio Player Styles */
.progress-container {
    background-color: var(--color-bg-light);
    height: 8px;
    border-radius: 4px;
    cursor: pointer;
    margin: 1rem 0;
}

.progress-bar {
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    height: 100%;
    border-radius: 4px;
    width: 0%;
    transition: width 0.1s linear;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.play-btn {
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
}

.play-btn:hover {
    background-color: var(--color-secondary);
}

.time-display {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* Scrolled Header State */
.site-header.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.site-header.scrolled .header-main {
    padding: 0.75rem 0;
    transition: padding 0.3s ease;
}

/* Page Navigation */
.post-navigation {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 2px solid var(--color-border);
    border-bottom: 2px solid var(--color-border);
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-subtitle {
    display: block;
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.nav-title {
    font-weight: 600;
    color: var(--color-primary);
}

/* Comments */
.comment-list {
    list-style: none;
    padding: 0;
}

.comment-body {
    background-color: var(--color-bg-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.comment-author {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.comment-metadata {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.comment-content {
    margin-bottom: 1rem;
}

.reply a {
    color: var(--color-primary);
    font-weight: 600;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }

    .btn,
    .menu-toggle,
    .sidebar,
    .site-footer,
    .comments-area {
        display: none !important;
    }

    body {
        font-size: 12pt;
    }

    a {
        text-decoration: underline;
    }
}