/* =================================
   Article Hub Page Styles
   Shared across all Ultimate Guide hub pages
   Hosted on Supabase Storage: public-assets/article-hub.css
   ================================= */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' version='1.1' xmlns:xlink='http://www.w3.org/1999/xlink' xmlns:svgjs='http://svgjs.dev/svgjs' width='1440' height='560' preserveAspectRatio='none' viewBox='0 0 1440 560'%3e%3cg mask='url(%26quot%3b%23SvgjsMask1002%26quot%3b)' fill='none'%3e%3crect width='1440' height='560' x='0' y='0' fill='rgba(45%2c 41%2c 41%2c 1)'%3e%3c/rect%3e%3cg transform='translate(0%2c 0)' stroke-linecap='round' stroke='url(%26quot%3b%23SvgjsRadialGradient1003%26quot%3b)'%3e%3cpath d='M150 255.09 L150 304.9' stroke-width='15'%3e%3c/path%3e%3cpath d='M170 131.96 L170 428.04' stroke-width='15'%3e%3c/path%3e%3cpath d='M190 114.42 L190 445.58' stroke-width='15'%3e%3c/path%3e%3cpath d='M210 114.44 L210 445.56' stroke-width='15'%3e%3c/path%3e%3cpath d='M230 213.51 L230 346.49' stroke-width='15'%3e%3c/path%3e%3cpath d='M250 226.82 L250 333.18' stroke-width='15'%3e%3c/path%3e%3cpath d='M270 242.19 L270 317.81' stroke-width='15'%3e%3c/path%3e%3cpath d='M290 132.03 L290 427.97' stroke-width='15'%3e%3c/path%3e%3cpath d='M310 75.97 L310 484.03' stroke-width='15'%3e%3c/path%3e%3cpath d='M330 140.17 L330 419.83' stroke-width='15'%3e%3c/path%3e%3cpath d='M350 79.03 L350 480.97' stroke-width='15'%3e%3c/path%3e%3cpath d='M370 238.71 L370 321.29' stroke-width='15'%3e%3c/path%3e%3cpath d='M390 63.29 L390 496.71' stroke-width='15'%3e%3c/path%3e%3cpath d='M410 124.6 L410 435.4' stroke-width='15'%3e%3c/path%3e%3cpath d='M430 104.31 L430 455.69' stroke-width='15'%3e%3c/path%3e%3cpath d='M450 197.12 L450 362.88' stroke-width='15'%3e%3c/path%3e%3cpath d='M470 240.84 L470 319.16' stroke-width='15'%3e%3c/path%3e%3cpath d='M490 70.62 L490 489.38' stroke-width='15'%3e%3c/path%3e%3cpath d='M510 197.34 L510 362.66' stroke-width='15'%3e%3c/path%3e%3cpath d='M530 185.75 L530 374.25' stroke-width='15'%3e%3c/path%3e%3cpath d='M550 233.06 L550 326.94' stroke-width='15'%3e%3c/path%3e%3cpath d='M570 97.81 L570 462.19' stroke-width='15'%3e%3c/path%3e%3cpath d='M590 95.45 L590 464.55' stroke-width='15'%3e%3c/path%3e%3cpath d='M610 96.88 L610 463.12' stroke-width='15'%3e%3c/path%3e%3cpath d='M630 177.42 L630 382.58' stroke-width='15'%3e%3c/path%3e%3cpath d='M650 105.92 L650 454.08' stroke-width='15'%3e%3c/path%3e%3cpath d='M670 186.93 L670 373.07' stroke-width='15'%3e%3c/path%3e%3cpath d='M690 256.46 L690 303.54' stroke-width='15'%3e%3c/path%3e%3cpath d='M710 93.61 L710 466.39' stroke-width='15'%3e%3c/path%3e%3cpath d='M730 110.04 L730 449.96' stroke-width='15'%3e%3c/path%3e%3cpath d='M750 196.95 L750 363.05' stroke-width='15'%3e%3c/path%3e%3cpath d='M770 178.28 L770 381.72' stroke-width='15'%3e%3c/path%3e%3cpath d='M790 218.09 L790 341.92' stroke-width='15'%3e%3c/path%3e%3cpath d='M810 74.78 L810 485.22' stroke-width='15'%3e%3c/path%3e%3cpath d='M830 83.28 L830 476.73' stroke-width='15'%3e%3c/path%3e%3cpath d='M850 183.53 L850 376.48' stroke-width='15'%3e%3c/path%3e%3cpath d='M870 249.84 L870 310.17' stroke-width='15'%3e%3c/path%3e%3cpath d='M890 123.81 L890 436.19' stroke-width='15'%3e%3c/path%3e%3cpath d='M910 183.99 L910 376.01' stroke-width='15'%3e%3c/path%3e%3cpath d='M930 66.54 L930 493.46' stroke-width='15'%3e%3c/path%3e%3cpath d='M950 236.62 L950 323.38' stroke-width='15'%3e%3c/path%3e%3cpath d='M970 109.81 L970 450.19' stroke-width='15'%3e%3c/path%3e%3cpath d='M990 133.38 L990 426.63' stroke-width='15'%3e%3c/path%3e%3cpath d='M1010 208.34 L1010 351.65' stroke-width='15'%3e%3c/path%3e%3cpath d='M1030 218.09 L1030 341.91' stroke-width='15'%3e%3c/path%3e%3cpath d='M1050 248.28 L1050 311.71' stroke-width='15'%3e%3c/path%3e%3cpath d='M1070 191.13 L1070 368.87' stroke-width='15'%3e%3c/path%3e%3cpath d='M1090 141.13 L1090 418.88' stroke-width='15'%3e%3c/path%3e%3cpath d='M1110 249.12 L1110 310.88' stroke-width='15'%3e%3c/path%3e%3cpath d='M1130 84.91 L1130 475.09' stroke-width='15'%3e%3c/path%3e%3cpath d='M1150 211.07 L1150 348.93' stroke-width='15'%3e%3c/path%3e%3cpath d='M1170 246.77 L1170 313.23' stroke-width='15'%3e%3c/path%3e%3cpath d='M1190 158.69 L1190 401.31' stroke-width='15'%3e%3c/path%3e%3cpath d='M1210 218.26 L1210 341.74' stroke-width='15'%3e%3c/path%3e%3cpath d='M1230 113.88 L1230 446.12' stroke-width='15'%3e%3c/path%3e%3cpath d='M1250 187.94 L1250 372.06' stroke-width='15'%3e%3c/path%3e%3cpath d='M1270 185.73 L1270 374.27' stroke-width='15'%3e%3c/path%3e%3cpath d='M1290 180.03 L1290 379.97' stroke-width='15'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cmask id='SvgjsMask1002'%3e%3crect width='1440' height='560' fill='white'%3e%3c/rect%3e%3c/mask%3e%3cradialGradient cx='720' cy='280' r='625.75' gradientUnits='userSpaceOnUse' id='SvgjsRadialGradient1003'%3e%3cstop stop-color='rgba(0%2c 0%2c 0%2c 1)' offset='0.25'%3e%3c/stop%3e%3cstop stop-color='rgba(255%2c 124%2c 0%2c 1)' offset='1'%3e%3c/stop%3e%3c/radialGradient%3e%3c/defs%3e%3c/svg%3e");
    background-repeat: repeat-y;
    background-size: contain;
    background-position: center;
}

.main-header {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    backdrop-filter: blur(3px);
    padding: 20px;
    text-align: center;
}

.content {
    padding: 20px;
    color: whitesmoke;
}

.filter-header {
    text-align: center;
    margin-bottom: 20px;
}

.filter {
    margin: 20px auto;
}

#filterInput {
    width: 80%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* =================================
   Article Count Badge
   ================================= */

.hub-article-count {
    text-align: center;
    margin: -5px 0 10px;
}

.hub-article-count span {
    display: inline-block;
    background: rgba(255, 102, 0, 0.15);
    border: 1px solid rgba(255, 102, 0, 0.4);
    color: #FF6600;
    font-size: 0.85em;
    font-weight: 600;
    padding: 5px 16px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

/* =================================
   Blog Grid & Article Cards
   ================================= */

.blog-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.blog-post {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background-color: transparent;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease;
    text-align: center;
}

.blog-post img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    border-radius: 10px 10px 0 0;
    padding: 10px 0;
}

.blog-post a {
    text-decoration: none;
    color: inherit;
}

.blog-post .summary {
    padding: 20px;
    color: white;
}

.blog-post .read-more {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.blog-post .read-more:hover {
    background: white;
    color: black;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
}

.blog-post:hover {
    transform: scale(1.05);
}

.tag {
    border: 2px solid white;
    padding: 10px 20px;
    border-radius: 5px;
}

/* =================================
   Skeleton Loading Cards
   ================================= */

@keyframes hub-shimmer {
    0% { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

.skeleton-card {
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    overflow: hidden;
    min-height: 420px;
}

.skeleton-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 800px 100%;
    animation: hub-shimmer 1.5s infinite linear;
}

.skeleton-text {
    padding: 20px;
}

.skeleton-line {
    height: 14px;
    border-radius: 7px;
    margin-bottom: 12px;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 800px 100%;
    animation: hub-shimmer 1.5s infinite linear;
}

.skeleton-line:nth-child(1) { width: 70%; height: 18px; }
.skeleton-line:nth-child(2) { width: 40%; }
.skeleton-line:nth-child(3) { width: 90%; }
.skeleton-line:nth-child(4) { width: 75%; }

/* =================================
   Fade-In Animation
   ================================= */

.hub-fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hub-fade-in.hub-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =================================
   Back To Top Button
   ================================= */

.hub-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #FF6600;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 22px;
    line-height: 48px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 1000;
}

.hub-back-to-top.hub-btt-show {
    opacity: 1;
    visibility: visible;
}

.hub-back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255, 102, 0, 0.5);
}

/* =================================
   Full-Width Instructor Bio (Brand Colors)
   ================================= */

.instructor-bio-fullwidth {
    background-color: #2d2d2d;
    padding: 60px 20px;
    margin-top: 40px;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.instructor-container {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    color: #F8F8FF;
}

.instructor-image-wrapper {
    flex-basis: 275px;
    flex-shrink: 0;
    text-align: center;
}

/* Circular photo with gradient ring */
.instructor-photo {
    border-radius: 50%;
    border: none;
    max-width: 220px;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    padding: 4px;
    background: linear-gradient(135deg, #FF6600, #FF9933, #FF6600);
    box-shadow: 0 4px 20px rgba(255, 102, 0, 0.3);
}

/* =================================
   Stats Bar (replaces .credentials)
   ================================= */

.hub-stats-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.hub-stat-block {
    background: rgba(255, 102, 0, 0.1);
    border: 1px solid rgba(255, 102, 0, 0.3);
    border-radius: 8px;
    padding: 12px 8px;
    text-align: center;
}

.hub-stat-value {
    display: block;
    font-size: 1.3em;
    font-weight: 700;
    color: #FF6600;
    line-height: 1.2;
}

.hub-stat-label {
    display: block;
    font-size: 0.7em;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Google stars */
.hub-stat-stars {
    color: #FFD700;
    font-size: 0.85em;
    display: block;
    margin-top: 2px;
}

/* Hide old credentials when stats bar is present */
.credentials { display: none; }

.instructor-text {
    flex-grow: 1;
}

.instructor-text h2 {
    font-size: 2.2em;
    margin-top: 0;
    color: #FFFFFF;
    border-bottom: 2px solid #FF6600;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.instructor-text h4 {
    font-size: 1.4em;
    color: #FF6600;
    margin-bottom: 5px;
    margin-top: 25px;
}

.instructor-text p {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 15px;
    color: #F8F8FF;
}

/* =================================
   CTA Button Row
   ================================= */

.hub-cta-row {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    background-color: #FF6600;
    color: #FFFFFF;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    margin-top: 0;
    text-align: center;
    border: 2px solid #FF6600;
    transition: all 0.3s ease;
}

.cta-button:hover,
.cta-button:focus {
    background-color: #F8F8FF;
    color: #FF6600;
    border-color: #FF6600;
    transform: translateY(-3px);
}

.cta-button-secondary {
    display: inline-block;
    background-color: transparent;
    color: #FF6600;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    text-align: center;
    border: 2px solid #FF6600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cta-button-secondary:hover,
.cta-button-secondary:focus {
    background-color: #FF6600;
    color: #FFFFFF;
    transform: translateY(-3px);
}

/* =================================
   Testimonial Strip
   ================================= */

.hub-testimonial-strip {
    max-width: 1100px;
    margin: 40px auto 0;
    padding: 0;
}

.hub-testimonial-strip h3 {
    text-align: center;
    color: #FF6600;
    font-size: 1.3em;
    margin-bottom: 20px;
}

.hub-testimonial-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.hub-testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 102, 0, 0.2);
    border-radius: 10px;
    padding: 20px;
    position: relative;
}

.hub-testimonial-card .hub-review-stars {
    color: #FFD700;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.hub-testimonial-card .hub-review-text {
    font-size: 0.95em;
    line-height: 1.6;
    color: #ddd;
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.hub-testimonial-card .hub-review-author {
    font-size: 0.85em;
    color: #FF6600;
    font-weight: 600;
}

/* =================================
   Lead Magnet CTA Section
   ================================= */

.hub-lead-magnet {
    max-width: 700px;
    margin: 30px auto;
    background: linear-gradient(135deg, rgba(255,102,0,0.08), rgba(255,153,51,0.05));
    border: 2px solid rgba(255, 102, 0, 0.3);
    border-radius: 12px;
    padding: 35px 30px;
    text-align: center;
}

.hub-lead-magnet h3 {
    color: #FF6600;
    font-size: 1.4em;
    margin: 0 0 8px;
}

.hub-lead-magnet p {
    color: #ccc;
    font-size: 1em;
    margin: 0 0 20px;
    line-height: 1.5;
}

.hub-lead-magnet form {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.hub-lead-magnet input[type="text"],
.hub-lead-magnet input[type="email"] {
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 1em;
    min-width: 180px;
    flex: 1;
    max-width: 220px;
}

.hub-lead-magnet input::placeholder {
    color: #999;
}

.hub-lead-magnet button {
    padding: 12px 24px;
    background: #FF6600;
    color: white;
    border: 2px solid #FF6600;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.hub-lead-magnet button:hover {
    background: white;
    color: #FF6600;
    transform: translateY(-2px);
}

.hub-lead-magnet button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.hub-lm-message {
    margin-top: 12px;
    font-size: 0.9em;
    min-height: 20px;
}

.hub-lm-message.hub-lm-success { color: #4CAF50; }
.hub-lm-message.hub-lm-error { color: #F44336; }

/* =================================
   Responsive Styles for Tablet
   ================================= */
@media (max-width: 768px) {
    .main-header {
        padding: 15px 10px;
    }

    .main-header h1 {
        font-size: 1.5em;
    }

    .content {
        padding: 10px;
    }

    .blog-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
        padding: 10px;
    }

    .blog-post img {
        height: 200px;
    }

    .blog-post:hover {
        transform: none;
    }

    .blog-post .read-more {
        padding: 12px 24px;
        margin-bottom: 15px;
    }

    #filterInput {
        width: 90%;
    }

    .instructor-bio-fullwidth {
        padding: 40px 15px;
    }

    .instructor-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .instructor-image-wrapper {
        flex-basis: auto;
        width: 100%;
        max-width: 200px;
        margin-bottom: 20px;
    }

    .instructor-text h2 {
        font-size: 1.6em;
    }

    .instructor-text p {
        text-align: left;
    }

    .hub-cta-row {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-button,
    .cta-button-secondary {
        width: 100%;
        box-sizing: border-box;
    }

    .hub-testimonial-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .hub-stats-bar {
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }

    .hub-lead-magnet {
        margin: 20px 10px;
        padding: 25px 20px;
    }

    .hub-lead-magnet form {
        flex-direction: column;
        align-items: stretch;
    }

    .hub-lead-magnet input[type="text"],
    .hub-lead-magnet input[type="email"] {
        max-width: 100%;
    }
}

/* =================================
   Responsive Styles for Small Mobile
   ================================= */
@media (max-width: 480px) {
    .main-header h1 {
        font-size: 1.2em;
        padding: 0 5px;
    }

    .blog-container {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 5px;
    }

    .blog-post img {
        height: 180px;
    }

    .blog-post .summary {
        padding: 10px 15px;
    }

    .blog-post .summary p {
        font-size: 0.9em;
    }

    .instructor-text h2 {
        font-size: 1.3em;
    }

    .instructor-text h4 {
        font-size: 1.1em;
    }

    .instructor-text p {
        font-size: 1em;
    }

    .hub-stat-value {
        font-size: 1.1em;
    }

    .hub-stat-label {
        font-size: 0.65em;
    }

    .hub-back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 18px;
        line-height: 42px;
    }
}
