/* Through The Charts - Component Styles */

/* Content States */
.content-state {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.content-state h3 {
    margin-bottom: 1rem;
}

.content-state p {
    color: #666;
    margin-bottom: 2rem;
}

.content-state .actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Blog Post Cards */
.blog-post-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.blog-post-card h2 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.blog-post-card .post-meta {
    color: #666;
    margin-bottom: 1rem;
}

.blog-post-card .post-excerpt {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
}

.blog-post-card .read-more {
    margin-top: 1rem;
    color: #e74c3c;
    font-weight: 500;
}

/* Article Layout */
.article {
    max-width: 800px;
    margin: 0 auto;
}

.article-content {
    background: white;
    border-radius: 8px;
    padding: 3rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.article-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 2rem;
}

.article-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.article-meta {
    color: #666;
    font-size: 1.1rem;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

/* Related Content */
.related-episode {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    border-left: 4px solid #e74c3c;
}

.related-episode strong {
    display: block;
    margin-bottom: 0.5rem;
}

.related-episode a {
    color: #e74c3c;
    text-decoration: none;
    margin-left: 0.5rem;
}

.related-episode small {
    color: #666;
}

/* Audio Player Container */
.audio-container {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.audio-container h3 {
    margin-bottom: 0.5rem;
}

.audio-container audio {
    width: 100%;
}

/* Profile/Detail Headers */
.detail-header {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.detail-header h1 {
    margin-bottom: 1rem;
}

.detail-header .host-link {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 500;
}

.detail-header .show-summary {
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 1.5rem 0;
}

.detail-header .cover-image {
    max-width: 200px;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Links Section */
.external-links {
    margin: 1rem 0;
}

.external-links strong {
    margin-right: 1rem;
}

.external-links a {
    margin-left: 1rem;
    color: #e74c3c;
}

/* Action Buttons */
.action-buttons {
    text-align: center;
    margin: 3rem 0;
}

.action-buttons .btn {
    margin: 0 0.5rem;
}

/* Search Results */
.search-results-section {
    margin-bottom: 3rem;
}

.search-results-section h2 {
    color: #333;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Submission Guidelines */
.submission-guidelines {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.submission-guidelines h3 {
    margin-bottom: 1rem;
}

.submission-guidelines ul {
    margin: 1rem 0 1rem 1.5rem;
}

.submission-guidelines li {
    margin-bottom: 0.5rem;
}

/* Info Boxes */
.info-box {
    padding: 1rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.info-box.success {
    background: #e8f5e8;
    color: #2d5a2d;
}

.info-box.warning {
    background: #fff3cd;
    color: #856404;
}

.info-box.info {
    background: #f8f9fa;
    border-left: 4px solid #e74c3c;
}

/* Form Elements */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}

/* Checkbox styling */
.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

/* Responsive adjustments for components */

/* Large tablets and small laptops */
@media (max-width: 1024px) {
    .article-content {
        padding: 2.5rem 2rem;
    }
    
    .article-title {
        font-size: 2.25rem;
    }
    
    .blog-post-card {
        padding: 1.75rem;
    }
    
    .detail-header {
        padding: 1.75rem;
    }
    
    .submission-guidelines {
        padding: 1.75rem;
    }
}

/* Tablets */
@media (max-width: 768px) {
    /* Article layout */
    .article {
        margin: 0 -15px;
    }
    
    .article-content {
        padding: 2rem 1.5rem;
        border-radius: 0;
        margin: 0;
    }
    
    .article-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .article-body {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    /* Blog post cards */
    .blog-post-card {
        padding: 1.5rem;
        margin: 0 -15px 1.5rem;
        border-radius: 0;
    }
    
    .blog-post-card h2 {
        font-size: 1.35rem;
    }
    
    /* Content states */
    .content-state {
        padding: 2rem 1.5rem;
        margin: 0 -15px;
        border-radius: 0;
    }
    
    .content-state .actions {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .content-state .actions .btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* Detail headers */
    .detail-header {
        padding: 1.5rem;
        margin: 0 -15px 2rem;
        border-radius: 0;
    }
    
    /* Action buttons */
    .action-buttons .btn {
        display: block;
        margin: 0.5rem 0;
        width: 100%;
        max-width: 300px;
    }
    
    /* Search results */
    .search-results-section h2 {
        font-size: 1.5rem;
    }
    
    /* Form elements */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 1rem; /* Prevents zoom on iOS */
    }
    
    /* Info boxes */
    .info-box {
        margin: 1rem -15px;
        border-radius: 0;
        padding: 1.25rem 1.5rem;
    }
    
    /* Submission guidelines */
    .submission-guidelines {
        padding: 1.5rem;
        margin: 0 -15px;
        border-radius: 0;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    /* Article layout */
    .article-content {
        padding: 1.5rem 1rem;
    }
    
    .article-header {
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .article-title {
        font-size: 1.6rem;
        line-height: 1.15;
    }
    
    .article-meta {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    .article-body {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    /* Blog post cards */
    .blog-post-card {
        padding: 1.25rem 1rem;
    }
    
    .blog-post-card h2 {
        font-size: 1.25rem;
        line-height: 1.2;
    }
    
    .blog-post-card .post-meta {
        font-size: 0.85rem;
    }
    
    .blog-post-card .post-excerpt {
        font-size: 0.95rem;
    }
    
    /* Content states */
    .content-state {
        padding: 1.5rem 1rem;
    }
    
    .content-state h3 {
        font-size: 1.2rem;
    }
    
    .content-state p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .content-state .actions .btn {
        max-width: none;
        padding: 0.75rem 1rem;
    }
    
    /* Detail headers */
    .detail-header {
        padding: 1.25rem 1rem;
    }
    
    .detail-header h1 {
        font-size: 1.4rem;
        line-height: 1.15;
    }
    
    .detail-header .show-summary {
        font-size: 0.95rem;
    }
    
    /* Related content */
    .related-episode {
        padding: 1rem;
        margin: 1rem -1rem;
        border-radius: 0;
    }
    
    .related-episode strong {
        font-size: 0.9rem;
    }
    
    .related-episode small {
        font-size: 0.8rem;
    }
    
    /* Audio container */
    .audio-container {
        padding: 1rem;
        margin: 1rem -1rem;
        border-radius: 0;
    }
    
    .audio-container h3 {
        font-size: 1rem;
    }
    
    /* Action buttons */
    .action-buttons {
        margin: 2rem 0;
    }
    
    .action-buttons .btn {
        margin: 0.4rem 0;
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }
    
    /* External links */
    .external-links {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .external-links strong {
        display: block;
        margin-bottom: 0.5rem;
        margin-right: 0;
    }
    
    .external-links a {
        display: inline-block;
        margin: 0.25rem 0.5rem 0.25rem 0;
        padding: 0.25rem 0.5rem;
        background: #f8f9fa;
        border-radius: 4px;
        font-size: 0.85rem;
    }
    
    /* Search results */
    .search-results-section h2 {
        font-size: 1.3rem;
        text-align: center;
    }
    
    /* Form elements */
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.7rem;
        font-size: 1rem; /* Prevents zoom on iOS */
    }
    
    /* Info boxes */
    .info-box {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    /* Submission guidelines */
    .submission-guidelines {
        padding: 1.25rem 1rem;
    }
    
    .submission-guidelines h3 {
        font-size: 1.15rem;
    }
    
    .submission-guidelines ul {
        margin-left: 1rem;
        font-size: 0.9rem;
    }
    
    .submission-guidelines li {
        margin-bottom: 0.75rem;
        line-height: 1.4;
    }
    
    /* Cover image */
    .cover-image {
        max-width: 150px !important;
        margin: 1rem auto !important;
        display: block;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .article-content {
        padding: 1.25rem 0.75rem;
    }
    
    .article-title {
        font-size: 1.45rem;
    }
    
    .blog-post-card {
        padding: 1rem 0.75rem;
    }
    
    .blog-post-card h2 {
        font-size: 1.15rem;
    }
    
    .content-state {
        padding: 1.25rem 0.75rem;
    }
    
    .detail-header {
        padding: 1rem 0.75rem;
    }
    
    .submission-guidelines {
        padding: 1rem 0.75rem;
    }
    
    .related-episode,
    .audio-container,
    .info-box {
        padding: 0.875rem;
    }
}

/* Touch improvements for all mobile devices */
@media (max-width: 768px) {
    /* Improve touch targets */
    .card a,
    .btn,
    button,
    input,
    select {
        min-height: 44px; /* iOS recommended touch target size */
    }
    
    .nav-links a {
        padding: 0.5rem 0.75rem;
        border-radius: 4px;
        transition: background-color 0.2s;
    }
    
    .nav-links a:hover,
    .nav-links a:focus {
        background-color: rgba(231, 76, 60, 0.1);
    }
    
    /* Prevent text from being too small */
    body {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    /* Smooth scrolling on mobile */
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Better focus states for accessibility */
    .btn:focus,
    input:focus,
    select:focus,
    textarea:focus {
        outline: 2px solid #e74c3c;
        outline-offset: 2px;
    }
}