/* ============================================================
   Tarabella.it - Plugins section
   Shared stylesheet
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: #1a1a1a;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

code {
    font-family: 'Courier New', monospace;
    background: rgba(255, 140, 66, 0.1);
    color: #ffaa66;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* ============================================================
   Header
   ============================================================ */

header {
    padding: 18px 0;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid #2a2a2a;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Hub page logo (text) */
.logo {
    font-size: 1.4rem;
    font-weight: bold;
    color: #ff8c42;
}

/* Plugin detail page logo (svg) */
.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 38px;
    width: auto;
    display: block;
}

.beta-badge {
    background: linear-gradient(45deg, #ff8c42, #ffaa66);
    color: #1a1a1a;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 1.5px;
}

.header-nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

.header-nav a {
    color: #cccccc;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.header-nav a:hover {
    color: #ff8c42;
}

.back-link {
    color: #cccccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #ff8c42;
}

/* ============================================================
   Hub page (index.html)
   ============================================================ */

.main-content {
    padding: 50px 0;
}

.page-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.product-card {
    background: linear-gradient(145deg, #2a2a2a, #1f1f1f);
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 140, 66, 0.1), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.product-card:hover::before {
    left: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: #ff8c42;
    box-shadow: 0 10px 30px rgba(255, 140, 66, 0.2);
}

.product-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: linear-gradient(45deg, #ff8c42, #ffaa66);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: bold;
    color: #fff;
    letter-spacing: 1px;
}

.product-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: #ffffff;
}

.product-subtitle {
    font-size: 0.8rem;
    color: #ff8c42;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-description {
    font-size: 0.95rem;
    color: #cccccc;
    line-height: 1.5;
}

/* ============================================================
   Generic section heading (used across plugin detail page)
   ============================================================ */

.section-heading {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 15px;
    font-family: 'Quicksand', 'Arial', sans-serif;
    position: relative;
    padding-bottom: 15px;
}

.section-heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ff8c42, #ffaa66);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-intro {
    color: #cccccc;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.05rem;
}

/* ============================================================
   Hero section
   ============================================================ */

.hero-section {
    padding: 70px 0 60px;
    text-align: center;
}

.hero-eyebrow {
    color: #ff8c42;
    font-family: 'Quicksand', 'Arial', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.hero-title {
    font-family: 'Quicksand', 'Arial', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-tagline {
    font-size: 1.15rem;
    color: #cccccc;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-image {
    margin: 0 auto 40px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #333;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 900px;
    display: block;
    position: relative;
}

.hero-image img,
.hero-image svg,
.hero-image video {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* CTA buttons */

.cta-row {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.cta-button {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(45deg, #ff8c42, #ffaa66);
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 140, 66, 0.4);
}

.cta-button.kofi {
    background: linear-gradient(45deg, #29abe0, #5cc4f0);
}

.cta-button.kofi:hover {
    box-shadow: 0 8px 25px rgba(41, 171, 224, 0.4);
}

/* ============================================================
   Quick Facts bar
   ============================================================ */

.quickfacts-section {
    padding: 30px 0;
    background: #141414;
    border-top: 1px solid #2a2a2a;
    border-bottom: 1px solid #2a2a2a;
}

.quickfacts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.fact {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 10px;
}

.fact-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    color: #ff8c42;
}

.fact-text {
    display: flex;
    flex-direction: column;
}

.fact-text strong {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
}

.fact-text span {
    color: #888;
    font-size: 0.82rem;
}

/* ============================================================
   Why section
   ============================================================ */

.why-section {
    padding: 80px 0;
    background: #1a1a1a;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.why-card {
    background: linear-gradient(145deg, #2a2a2a, #1f1f1f);
    padding: 35px 30px;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
    text-align: center;
    transition: all 0.3s ease;
}

.why-card:hover {
    border-color: #ff8c42;
    transform: translateY(-3px);
}

.why-icon {
    width: 48px;
    height: 48px;
    color: #ff8c42;
    margin: 0 auto 20px;
    display: block;
}

.why-card h3 {
    font-family: 'Quicksand', 'Arial', sans-serif;
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 12px;
    font-weight: 600;
}

.why-card p {
    color: #cccccc;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================================
   Features section
   ============================================================ */

.features-section {
    padding: 80px 0;
    background: #141414;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.feature-card {
    background: rgba(0, 0, 0, 0.3);
    padding: 28px 25px;
    border-radius: 10px;
    border-left: 3px solid #ff8c42;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 140, 66, 0.05);
    transform: translateX(3px);
}

.feature-card h3 {
    font-family: 'Quicksand', 'Arial', sans-serif;
    font-size: 1.15rem;
    color: #ffaa66;
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-card p {
    color: #cccccc;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================================
   Parameters section
   ============================================================ */

.parameters-section {
    padding: 80px 0;
    background: #1a1a1a;
}

.param-block {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 35px;
    align-items: start;
    margin: 40px 0;
    padding: 25px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    border: 1px solid #2a2a2a;
}

.param-image {
    position: sticky;
    top: 90px;
}

.param-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #333;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.param-text {
    color: #cccccc;
}

.param-title {
    color: #ff8c42;
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-weight: bold;
    font-family: 'Quicksand', 'Arial', sans-serif;
}

.param-subtitle {
    color: #ffaa66;
    font-size: 1rem;
    margin: 20px 0 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

.param-text > p {
    margin-bottom: 10px;
}

.param-text strong {
    color: #ffffff;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 10px 0 10px 28px;
    color: #cccccc;
    position: relative;
    border-bottom: 1px solid #2a2a2a;
}

.feature-list li::before {
    content: '▸';
    color: #ff8c42;
    position: absolute;
    left: 8px;
    font-weight: bold;
}

.feature-list li:last-child {
    border-bottom: none;
}

/* ============================================================
   Installation
   ============================================================ */

.install-section {
    padding: 80px 0;
    background: #141414;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin: 50px 0 30px;
}

.step {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.step-num {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff8c42, #ffaa66);
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    font-family: 'Quicksand', 'Arial', sans-serif;
}

.step-text strong {
    color: #ffffff;
    font-size: 1.05rem;
    display: block;
    margin-bottom: 6px;
}

.step-text p {
    color: #cccccc;
    font-size: 0.95rem;
    line-height: 1.5;
}

.info-box {
    background: rgba(255, 140, 66, 0.05);
    border-left: 3px solid #ff8c42;
    padding: 20px 25px;
    border-radius: 0 8px 8px 0;
    margin: 30px 0 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.info-box p {
    color: #cccccc;
    margin-bottom: 8px;
}

.info-box p:last-child {
    margin-bottom: 0;
}

.info-box strong {
    color: #ff8c42;
}

/* ============================================================
   Companion tool
   ============================================================ */

.companion-section {
    padding: 80px 0;
    background: #1a1a1a;
}

/* ============================================================
   FAQ section
   ============================================================ */

.faq-section {
    padding: 80px 0;
    background: #141414;
}

.faq-section .container {
    max-width: 800px;
}

.faq-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.faq-item[open] {
    border-color: #ff8c42;
}

.faq-item summary {
    padding: 18px 22px;
    cursor: pointer;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    list-style: none;
    position: relative;
    padding-right: 50px;
    transition: background 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: #ff8c42;
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item summary:hover {
    background: rgba(255, 140, 66, 0.05);
}

.faq-item p {
    padding: 0 22px 20px;
    color: #cccccc;
    line-height: 1.6;
}

/* ============================================================
   Final CTA
   ============================================================ */

.final-cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(255, 140, 66, 0.1) 0%, rgba(255, 170, 102, 0.05) 100%);
    border-top: 1px solid rgba(255, 140, 66, 0.2);
    border-bottom: 1px solid rgba(255, 140, 66, 0.2);
    text-align: center;
}

.final-cta-section h2 {
    font-family: 'Quicksand', 'Arial', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
}

.final-cta-section p {
    color: #cccccc;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* ============================================================
   Footer
   ============================================================ */

footer {
    padding: 50px 0 25px;
    background: #0f0f0f;
    border-top: 1px solid #2a2a2a;
    color: #888;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 35px;
    margin-bottom: 30px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col strong {
    color: #ff8c42;
    font-size: 1rem;
    margin-bottom: 8px;
    font-family: 'Quicksand', 'Arial', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-col p {
    color: #888;
    line-height: 1.5;
}

.footer-col a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: #ff8c42;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid #2a2a2a;
    color: #666;
    font-size: 0.85rem;
}

#email-link {
    color: #cccccc;
    cursor: pointer;
    text-decoration: none;
}

#email-link:hover {
    color: #ff8c42;
}

/* YouTube iframe responsive 16:9 */
.video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;  /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 768px) {
    .header-row {
        gap: 12px;
    }
    .header-nav {
        gap: 15px;
        font-size: 0.85rem;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-eyebrow {
        font-size: 0.8rem;
        letter-spacing: 2px;
    }
    .section-heading {
        font-size: 1.6rem;
    }
    .page-title {
        font-size: 1.9rem;
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
    .cta-row {
        flex-direction: column;
        align-items: stretch;
    }
    .cta-button {
        text-align: center;
    }
    .param-block {
        grid-template-columns: 1fr;
        padding: 18px;
    }
    .param-image {
        position: static;
    }
    .why-section,
    .features-section,
    .parameters-section,
    .install-section,
    .companion-section,
    .faq-section,
    .final-cta-section {
        padding: 50px 0;
    }
    .hero-section {
        padding: 40px 0 30px;
    }
    .final-cta-section h2 {
        font-size: 1.6rem;
    }
}