/**
 * Jazz for Piano Section Styles
 * Paul Sharp Legacy Content - NYJW Integration
 */

/* ========================================
   Section Wrapper
   ======================================== */
.jazz-for-piano-wrapper {
    background: #f8f9fa;
    min-height: calc(100vh - 200px);
}

.jazz-for-piano-wrapper .center-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ========================================
   Main Content Area
   ======================================== */
.jfp-content {
    flex: 1;
    min-width: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 40px;
}

.jfp-article .entry-title {
    color: #1a365d;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #c6a052;
}

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

.jfp-article .entry-content h2,
.jfp-article .entry-content h3,
.jfp-article .entry-content h4 {
    color: #1a365d;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.jfp-article .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 20px 0;
}

.jfp-article .entry-content a {
    color: #c6a052;
    text-decoration: underline;
}

.jfp-article .entry-content a:hover {
    color: #1a365d;
}

/* ========================================
   Child Pages Cards
   ======================================== */
.jfp-child-pages {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.jfp-child-pages h3 {
    color: #1a365d;
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.jfp-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.jfp-card {
    display: block;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e2e8f0;
}

.jfp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.jfp-card-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.jfp-card-content {
    padding: 20px;
}

.jfp-card-content h4 {
    color: #1a365d;
    font-size: 1.1rem;
    margin: 0 0 10px 0;
}

.jfp-card-content p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* ========================================
   Paul Sharp Attribution
   ======================================== */
.paul-sharp-attribution {
    margin-top: 50px;
    padding: 25px;
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    border-radius: 8px;
    color: #fff;
}

.attribution-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.attribution-icon {
    font-size: 2rem;
    color: #c6a052;
}

.paul-sharp-attribution p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.paul-sharp-attribution a {
    color: #c6a052;
    font-weight: 600;
    text-decoration: none;
}

.paul-sharp-attribution a:hover {
    text-decoration: underline;
}

/* ========================================
   Sidebar
   ======================================== */
.jfp-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.jfp-sidebar-widget {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    position: sticky;
    top: 20px;
}

.jfp-sidebar-header {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    padding: 25px 20px;
    text-align: center;
}

.jfp-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
}

.jfp-logo-icon {
    font-size: 1.8rem;
    color: #c6a052;
}

.jfp-tagline {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    margin: 10px 0 0 0;
    font-style: italic;
}

/* Chapter Navigation */
.jfp-chapter-nav {
    padding: 20px;
}

.jfp-nav-title {
    color: #1a365d;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #c6a052;
}

.jfp-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.jfp-nav-item {
    margin-bottom: 5px;
}

.jfp-nav-item > a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-weight: 500;
}

.jfp-nav-item > a:hover {
    background: #f0f4f8;
    color: #1a365d;
}

.jfp-nav-item.active > a {
    background: #1a365d;
    color: #fff;
}

/* Sub-navigation */
.jfp-subnav {
    list-style: none;
    margin: 5px 0 10px 15px;
    padding: 0;
    border-left: 2px solid #e2e8f0;
}

.jfp-subnav li {
    margin: 0;
}

.jfp-subnav a {
    display: block;
    padding: 8px 15px;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.jfp-subnav a:hover {
    color: #1a365d;
}

.jfp-subnav li.active a {
    color: #c6a052;
    font-weight: 600;
}

/* Sidebar Footer */
.jfp-sidebar-footer {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #e2e8f0;
}

.jfp-about-link,
.jfp-back-link {
    display: block;
    padding: 10px 0;
    color: #1a365d;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.jfp-about-link {
    font-weight: 600;
}

.jfp-about-link:hover,
.jfp-back-link:hover {
    color: #c6a052;
}

.jfp-icon {
    color: #c6a052;
    margin-right: 5px;
}

/* ========================================
   Blog Homepage Feature Box
   ======================================== */
.jfp-feature-box {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 40px;
    color: #fff;
}

.jfp-feature-content {
    flex: 1;
}

.jfp-feature-badge {
    display: inline-block;
    background: rgba(198, 160, 82, 0.2);
    color: #c6a052;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.jfp-feature-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #fff;
}

.jfp-feature-title span {
    color: #c6a052;
}

.jfp-feature-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 0 25px 0;
    opacity: 0.9;
}

.jfp-feature-cta {
    display: inline-block;
    background: #c6a052;
    color: #1a365d;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.jfp-feature-cta:hover {
    background: #d4b366;
    transform: translateY(-2px);
}

.jfp-feature-image {
    width: 200px;
    flex-shrink: 0;
}

.jfp-feature-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* ========================================
   Responsive Styles
   ======================================== */
@media (max-width: 992px) {
    .jazz-for-piano-wrapper .center-content {
        flex-direction: column;
    }

    .jfp-sidebar {
        width: 100%;
        order: -1;
    }

    .jfp-sidebar-widget {
        position: static;
    }

    .jfp-chapter-nav {
        display: none;
    }

    .jfp-sidebar-widget:hover .jfp-chapter-nav {
        display: block;
    }
}

@media (max-width: 768px) {
    .jfp-content {
        padding: 25px;
    }

    .jfp-article .entry-title {
        font-size: 1.6rem;
    }

    .jfp-cards {
        grid-template-columns: 1fr;
    }

    .jfp-feature-box {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }

    .jfp-feature-image {
        width: 150px;
        order: -1;
    }

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

/* ========================================
   Blog Filters Section
   ======================================== */
.blog-filters {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px 30px;
    margin-top: 30px;
    border: 1px solid #e2e8f0;
}

.blog-filters-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 25px;
}

/* Search */
.blog-search {
    flex: 1;
    min-width: 280px;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.search-input-wrapper:focus-within {
    border-color: #c6a052;
}

.search-icon {
    padding: 0 12px;
    font-size: 1.1rem;
    opacity: 0.6;
}

.blog-search-input {
    flex: 1;
    border: none;
    padding: 12px 0;
    font-size: 1rem;
    outline: none;
    background: transparent;
}

.blog-search-input::placeholder {
    color: #999;
}

.blog-search-btn {
    background: #1a365d;
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.blog-search-btn:hover {
    background: #2c5282;
}

/* Categories */
.blog-categories {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.filter-label {
    color: #666;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-tag {
    display: inline-block;
    padding: 8px 16px;
    background: #fff;
    color: #333;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.category-tag:hover {
    background: #1a365d;
    color: #fff;
    border-color: #1a365d;
}

.category-tag.active {
    background: #c6a052;
    color: #fff;
    border-color: #c6a052;
}

/* Feature box adjustments for longer text */
.jfp-feature-description.jfp-feature-artists {
    font-size: 0.95rem;
    margin-top: 15px;
    opacity: 0.85;
    font-style: italic;
}

/* Responsive Blog Filters */
@media (max-width: 768px) {
    .blog-filters {
        padding: 20px;
    }

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

    .blog-search {
        min-width: 100%;
    }

    .blog-categories {
        flex-direction: column;
        align-items: flex-start;
    }

    .category-tags {
        width: 100%;
    }

    .jfp-feature-description {
        font-size: 0.95rem;
    }

    .jfp-feature-description.jfp-feature-artists {
        font-size: 0.85rem;
    }
}



