/* =============================================================================
   BLOG STYLES
   ============================================================================= */

/* --- Main Blog Index Layout --- */
.sw-blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 20px;
}

.sw-blog-header {
    text-align: center;
    margin-bottom: 4rem;
}

.sw-blog-title {
    font-family: var(--sw-font-heading);
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #111;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.sw-blog-subtitle {
    font-family: var(--sw-font-body);
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Blog Grid --- */
.sw-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

/* --- Blog Card --- */
.sw-blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sw-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.sw-blog-card-img-link {
    display: block;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    position: relative;
    overflow: hidden;
}

.sw-blog-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.sw-blog-card:hover .sw-blog-card-img {
    transform: scale(1.05);
}

.sw-blog-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.sw-blog-category {
    font-family: var(--sw-font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 0.75rem;
    letter-spacing: 0.1em;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    width: fit-content;
    background: var(--sw-primary);
}

/* Category color classes - matching site kicker scheme */
@keyframes sw-shimmer-blog {
    0% {
        background-position: 200% center;
    }

    100% {
        background-position: -200% center;
    }
}

.sw-blog-category.sw-cat-newmusic {
    background: linear-gradient(90deg, #059669 0%, #10b981 50%, #059669 100%);
    background-size: 200% auto;
    animation: sw-shimmer-blog 3s linear infinite;
}

.sw-blog-category.sw-cat-digital {
    background: linear-gradient(90deg, #8b5cf6 0%, #a78bfa 50%, #8b5cf6 100%);
    background-size: 200% auto;
    animation: sw-shimmer-blog 3s linear infinite;
}

.sw-blog-category.sw-cat-touring {
    background: linear-gradient(90deg, #22c55e 0%, #4ade80 50%, #22c55e 100%);
    background-size: 200% auto;
    animation: sw-shimmer-blog 3s linear infinite;
}

.sw-blog-category.sw-cat-festivals {
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 50%, #f59e0b 100%);
    background-size: 200% auto;
    animation: sw-shimmer-blog 3s linear infinite;
}

.sw-blog-category.sw-cat-promoters {
    background: linear-gradient(90deg, #0ea5e9 0%, #38bdf8 50%, #0ea5e9 100%);
    background-size: 200% auto;
    animation: sw-shimmer-blog 3s linear infinite;
}

.sw-blog-category.sw-cat-ecom {
    background: linear-gradient(90deg, #ef4444 0%, #f87171 50%, #ef4444 100%);
    background-size: 200% auto;
    animation: sw-shimmer-blog 3s linear infinite;
}


.sw-blog-card-title {
    font-family: var(--sw-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1rem 0;
    color: #111;
    text-wrap: balance;
}

.sw-blog-card-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sw-blog-card-title a:hover {
    color: var(--sw-primary);
}

.sw-blog-card-excerpt {
    font-family: var(--sw-font-body);
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.sw-blog-read-more {
    display: inline-block;
    font-family: var(--sw-font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #111;
    text-decoration: none;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #ff6a00;
    padding-bottom: 2px;
    align-self: flex-start;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sw-blog-read-more:hover {
    color: var(--sw-primary);
    border-bottom-color: transparent;
}

/* --- Single Article Styles --- */
.sw-article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 20px;
    background: transparent;
}

.sw-article-header {
    text-align: center;
    margin-bottom: 3rem;
}

.sw-article-meta {
    font-family: var(--sw-font-heading);
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.sw-article-meta span {
    margin: 0 10px;
}

/* Article page category pill - match blog index styling */
.sw-article-category {
    font-family: var(--sw-font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 0.1em;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    width: fit-content;
    background: var(--sw-primary);
    margin-right: 10px;
}

/* Article category color classes */
.sw-article-category.sw-cat-newmusic {
    background: linear-gradient(90deg, #059669 0%, #10b981 50%, #059669 100%);
    background-size: 200% auto;
    animation: sw-shimmer-blog 3s linear infinite;
}

.sw-article-category.sw-cat-digital {
    background: linear-gradient(90deg, #8b5cf6 0%, #a78bfa 50%, #8b5cf6 100%);
    background-size: 200% auto;
    animation: sw-shimmer-blog 3s linear infinite;
}

.sw-article-category.sw-cat-touring {
    background: linear-gradient(90deg, #22c55e 0%, #4ade80 50%, #22c55e 100%);
    background-size: 200% auto;
    animation: sw-shimmer-blog 3s linear infinite;
}

.sw-article-category.sw-cat-festivals {
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 50%, #f59e0b 100%);
    background-size: 200% auto;
    animation: sw-shimmer-blog 3s linear infinite;
}

.sw-article-category.sw-cat-promoters {
    background: linear-gradient(90deg, #0ea5e9 0%, #38bdf8 50%, #0ea5e9 100%);
    background-size: 200% auto;
    animation: sw-shimmer-blog 3s linear infinite;
}

.sw-article-category.sw-cat-ecom {
    background: linear-gradient(90deg, #ef4444 0%, #f87171 50%, #ef4444 100%);
    background-size: 200% auto;
    animation: sw-shimmer-blog 3s linear infinite;
}

.sw-article-category.sw-cat-casestudies {
    background: linear-gradient(90deg, #ff6a00 0%, #ff8533 50%, #ff6a00 100%);
    background-size: 200% auto;
    animation: sw-shimmer-blog 3s linear infinite;
}

.sw-article-title {
    font-family: var(--sw-font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: #111;
    margin: 0 0 1.5rem 0;
    text-wrap: balance;
}

.sw-article-featured-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.sw-article-content {
    font-family: var(--sw-font-body);
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.sw-article-content p {
    margin-bottom: 1.5rem;
}

.sw-article-content h2 {
    font-family: var(--sw-font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: #111;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.sw-article-content h3 {
    font-family: var(--sw-font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: #111;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.sw-article-content ul,
.sw-article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.sw-article-content li {
    margin-bottom: 0.5rem;
}

@keyframes sw-accent-pulse {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.sw-article-content blockquote {
    position: relative;
    background:
        linear-gradient(rgba(17, 17, 17, 0.97), rgba(17, 17, 17, 0.97)),
        url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23333' fill-opacity='0.3'%3E%3Cpath d='M0 0h1v1H0V0zm20 0h1v1h-1V0zM0 20h1v1H0v-1zm20 20h1v1h-1v-1z'/%3E%3C/g%3E%3C/svg%3E");
    border-radius: 8px;
    padding: 2rem 2rem 2rem 2.5rem;
    margin: 2.5rem 0;
    font-style: normal;
    color: #e5e5e5;
    font-size: 1.15rem;
    line-height: 1.7;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.sw-article-content blockquote::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #ff6a00, #ff8533, #ff6a00);
    background-size: 100% 200%;
    animation: sw-accent-pulse 2s ease-in-out infinite;
}

.sw-article-content blockquote p {
    margin: 0;
    color: inherit;
}

/* --- Social Sharing --- */
.sw-share-container {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    text-align: center;
}

.sw-share-label {
    font-family: var(--sw-font-heading);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
    color: #888;
}

.sw-share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.sw-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sw-share-btn:hover {
    background: var(--sw-primary);
    color: #fff;
    transform: translateY(-3px);
}

.sw-share-btn.sw-copy-link {
    cursor: pointer;
    border: none;
}

.sw-share-btn.sw-copy-link.copied {
    background: #22c55e;
    color: #fff;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .sw-blog-grid {
        grid-template-columns: 1fr;
    }

    .sw-blog-title {
        font-size: 2.2rem;
    }

    .sw-article-title {
        font-size: 2rem;
    }

    .sw-article-container {
        padding: 2rem 15px;
    }
}

/* --- Magazine-Style Floating Figures --- */
.sw-article-figure {
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
}

.sw-article-figure img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.sw-article-figure figcaption {
    font-family: var(--sw-font-body);
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    margin-top: 0.75rem;
    font-style: italic;
}

.sw-article-figure.sw-float-right {
    float: right;
    width: auto;
    max-width: 250px;
    margin: 0.5rem 0 1.5rem 2rem;
}

.sw-article-figure.sw-float-left {
    float: left;
    width: auto;
    max-width: 250px;
    margin: 0.5rem 2rem 1.5rem 0;
}

@media (max-width: 768px) {

    .sw-article-figure.sw-float-right,
    .sw-article-figure.sw-float-left {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 1.5rem 0;
    }
}

/* --- Blog Controls (Filter, Sort, View Toggle) --- */
.sw-blog-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding: 1rem 1.5rem;
    background: #111;
    border-radius: 10px;
    flex-wrap: wrap;
    gap: 1rem;
}

.sw-blog-filters {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.sw-blog-select {
    padding: 0.6rem 2.25rem 0.6rem 1rem;
    font-family: var(--sw-font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #e5e5e5;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    background-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.sw-blog-select option {
    background: #222;
    color: #fff;
}

.sw-blog-select:hover {
    border-color: rgba(255, 106, 0, 0.5);
    background-color: rgba(255, 255, 255, 0.12);
}

.sw-blog-select:focus {
    outline: none;
    border-color: var(--sw-primary);
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.15);
}

.sw-blog-view-toggle {
    display: flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.06);
    padding: 3px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sw-view-btn {
    background: transparent;
    border: none;
    color: #666;
    padding: 0.4rem 0.65rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.sw-view-btn:hover {
    color: #bbb;
}

.sw-view-btn.active {
    background: var(--sw-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 106, 0, 0.3);
}

/* --- Card Meta & Date --- */
.sw-blog-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.sw-blog-card-meta .sw-blog-category {
    margin-bottom: 0;
}

.sw-blog-date {
    font-family: var(--sw-font-heading);
    font-size: 0.8rem;
    color: #999;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* --- List View Layout --- */
.sw-blog-grid.list-view {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.sw-blog-grid.list-view .sw-blog-card {
    flex-direction: row;
}

.sw-blog-grid.list-view .sw-blog-card-img-link {
    width: 300px;
    min-width: 300px;
    padding-top: 0;
    min-height: 200px;
}

.sw-blog-grid.list-view .sw-blog-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sw-blog-grid.list-view .sw-blog-card-content {
    flex: 1;
    padding: 1.75rem 2rem;
    justify-content: center;
}

.sw-blog-grid.list-view .sw-blog-card-title {
    font-size: 1.6rem;
}

.sw-blog-grid.list-view .sw-blog-card-excerpt {
    margin-bottom: 1rem;
}

/* --- Pagination --- */
.sw-pagination-container {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.sw-pagination {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    background: #111;
    padding: 0.4rem;
    border-radius: 8px;
}

.sw-page-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #999;
    font-family: var(--sw-font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.45rem 0.9rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.sw-page-btn:hover:not(:disabled) {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.sw-page-btn.sw-page-num.active {
    background: var(--sw-primary);
    color: #fff;
    border-color: var(--sw-primary);
    box-shadow: 0 2px 8px rgba(255, 106, 0, 0.3);
}

.sw-page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.sw-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    font-family: var(--sw-font-heading);
    font-size: 1.2rem;
    color: #888;
    background: #f9f9f9;
    border-radius: 10px;
    border: 1px dashed #ddd;
}

/* --- Mobile Responsiveness Updates --- */
@media (max-width: 768px) {
    .sw-blog-grid.list-view .sw-blog-card {
        flex-direction: column;
    }
    
    .sw-blog-grid.list-view .sw-blog-card-img-link {
        width: 100%;
        min-width: 100%;
        padding-top: 56.25%;
    }
    
    .sw-blog-grid.list-view .sw-blog-card-content {
        padding: 1.5rem;
    }
    
    .sw-blog-grid.list-view .sw-blog-card-title {
        font-size: 1.35rem;
    }
    
    .sw-blog-controls {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
    }
    
    .sw-blog-filters {
        flex-direction: column;
        width: 100%;
    }
    
    .sw-blog-select {
        width: 100%;
    }
    
    .sw-blog-view-toggle {
        align-self: flex-end;
    }
}