/**
 * Partners Page Styles
 * Catalog Discount — Comunitatea CipAuto
 */

/* ========== Hero Section ========== */
.community-hero-section {
    display: grid;
    grid-template-columns: 1fr 424px;
    gap: 24px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 0 48px;
    align-items: start;
}

/* Hero Left — Content + FAQ */
.hero-content h1 {
    font-family: 'Jost', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 16px;
}

.hero-content {
    font-family: 'Jost', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #000000;
    background: #f3f3f3;
    padding: 40px 48px;
    padding-bottom: 24px;
    border-radius: 16px;
    margin: 0;
}

/* FAQ */
.community-faq {
    margin-top: 24px;
}

.community-faq h2 {
    font-family: 'Jost', sans-serif;
    font-size: 30px;
    font-weight: 800;
    color: #000000;
    margin: 0 0 16px;
}

.faq-item {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid #f3f3f3;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    font-family: 'Jost', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1F2937;
    cursor: pointer;
    text-align: left;
    gap: 12px;
}

.faq-question:hover {
    background: #FAFAFA;
}

.faq-icon {
    font-size: 20px;
    color: #6B7280;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.faq-answer {
    padding: 20px 24px;
    font-family: 'Jost', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #4B5563;
}

.faq-answer a {
    color: #3B00DD;
    font-weight: 600;
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* .faq-answer visibility controlled by jQuery slideDown/slideUp */

.faq-item.closed .faq-icon {
    transform: rotate(-90deg);
}

/* Hero Right — Card Section */
.hero-card-section {
    position: sticky;
    top: 100px;

    gap: 16px;
    opacity: 1;
    border-radius: 16px;
    padding: 24px;
    background: #F3F3F3;
}

.demo-card-image {
    width: 100%;
    height: auto;
    display: flex;
}

/* Levels Grid */
.hero-levels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.hero-level-item {
    text-align: center;
    background: #fff;
    border-radius: 12px;
    padding: 16px 8px;
    border: 1px solid #f3f3f3;
}

.hero-level-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
}

.hero-level-circle span {
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
}

.hero-level-label {
    display: block;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 2px;
}

.hero-level-desc {
    display: block;
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    color: #6B7280;
    line-height: 1.3;
}

/* CTA Button */
.btn-create-account {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #EDE9FE;
    color: #3B00DD;
    border-radius: 12px;
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
    margin-top: 12px;
    padding: 12px;
    font-size: 14px;
}

.btn-create-account:hover {
    background: #ded8fa;
    color: #3B00DD;
}

.cta-subtext {
    text-align: center;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    color: #6B7280;
    margin: 12px 0 0;
    line-height: 1.5;
}

/* Hero Responsive — Tablet */
@media (max-width: 1023px) {
    .community-hero-section {
        grid-template-columns: 1fr;
        padding: 0 20px 40px;
    }

    .hero-card-section {
        position: static;
        margin: 0 auto;
    }
}

/* Hero Responsive — Mobile */
@media (max-width: 768px) {
    .community-hero-section {
        padding: 0 0 24px;
        gap: 0px;
    }

    .hero-card-section {
        padding: 12px;
    }

    .hero-content {
        padding: 20px 24px;
    }

    .hero-content h1 {
        font-size: 26px;
    }

    .community-faq h2 {
        font-size: 18px;
    }

    .faq-question {
        padding: 16px 20px;
        font-size: 15px;
    }

    .faq-answer {
        padding: 0 20px 16px;
        font-size: 14px;
    }
}

/* ========== Page Layout ========== */
.partners-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 0px 20px;
}

.partners-header {
    text-align: center;
    margin-bottom: 32px;
}

.partners-title {
    font-family: 'Jost', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 8px;
}

.partners-subtitle {
    font-family: 'Jost', sans-serif;
    font-size: 16px;
    color: #6B7280;
    margin: 0 0 16px;
}

.partners-login-notice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #F5F3FF;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
}

.partners-login-notice a {
    color: #3B00DD;
    font-weight: 600;
    text-decoration: none;
}

.partners-login-notice a:hover {
    text-decoration: underline;
}

.partners-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6B7280;
    font-size: 16px;
}

/* ========== Partner Categories ========== */
.partners-categories {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ========== Category Accordion ========== */
.partner-category {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.category-header:hover {
    background: #FAFAFA;
}

.category-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.category-icon svg {
    width: 100%;
    height: 100%;
}

.category-name {
    font-family: 'Jost', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1F2937;
    margin: 0;
    flex: 1;
}

.category-count {
    font-family: 'Jost', sans-serif;
    font-size: 16px;
    color: #000000;
    opacity: .5;
    margin-right: 12px;
    font-weight: 400;
}

.category-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(0, 229, 185, 0.1);
    color: #00E5B9;
    border: none;
    border-radius: 8px;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.category-toggle:hover {
    background: rgba(0, 229, 185, 0.2);
}

.partner-category.open .category-toggle {
    background: rgba(0, 229, 185, 0.15);
}

/* Category Content */
.category-content {
    padding: 0 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ========== Partner Card ========== */
.partner-card {
    background: #F9FAFB;
    border-radius: 16px;
    padding: 24px;
}

.partner-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.partner-info {
    flex: 1;
    min-width: 0;
}

.partner-name {
    font-family: 'Jost', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.partner-subcategory {
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    color: #6B7280;
    margin: 0;
}

.partner-badges {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: 16px;
}

.discount-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    height: 56px;
    background: #00E5B9;
    color: #fff;
    font-family: 'Jost', sans-serif;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50%;
    padding: 0 8px;
}

.partner-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: contain;
    flex-shrink: 0;
}

.partner-description {
    font-family: 'Jost', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: #374151;
    margin: 0 0 20px;
}

/* ========== Toggle Details Button ========== */
.partner-toggle-details {
    width: 100%;
    padding: 16px;
    background: #F5F3FF;
    color: #3B00DD;
    border: none;
    border-radius: 12px;
    font-family: 'Jost', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.partner-toggle-details:hover {
    background: #EDE9FE;
}

/* ========== Expanded Details ========== */
.partner-details {
    margin-bottom: 16px;
}

/* Discount Levels */
.partner-levels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.level-item {
    background: #f3f3f3;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.level-item.active {
    background: #ECFDF5;
}

.level-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    margin: 0 auto 8px;
    background: #9CA3AF;
}

.level-item.level-1 .level-number {
    background: #00E5B9;
}

.level-item.level-2 .level-number {
    background: #9CA3AF;
}

.level-item.level-3 .level-number {
    background: #8B5CF6;
}

.level-item.active .level-number {
    background: #00E5B9;
}

.level-label {
    display: block;
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    color: #6B7280;
    margin-bottom: 4px;
}

.level-discount {
    display: block;
    font-family: 'Jost', sans-serif;
    font-size: 20px;
    line-height: 20px;
    font-weight: 700;
    color: #1F2937;
}

.level-item.active .level-discount {
    color: #00E5B9;
}

/* ========== Action Buttons ========== */
.partner-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    background: #F5F3FF;
    color: #3B00DD;
    border-radius: 12px;
    font-family: 'Jost', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.action-btn:hover {
    background: #EDE9FE;
    color: #3B00DD;
}

.action-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: #3B00DD;
}

/* Partner Address */
.partner-address {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    color: #9CA3AF;
    margin-bottom: 16px;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .partners-page {
        padding: 0px;
    }

    .partners-title {
        font-size: 26px;
    }

    .category-header {
        padding: 16px 2px;
        gap: 10px;
    }

    .category-name {
        font-size: 17px;
    }

    .category-count {
        font-size: 14px;
        margin-right: 8px;
    }

    .category-toggle {
        padding: 10px 16px;
        font-size: 13px;
    }

    .category-content {
        padding: 0 0 12px;
        gap: 12px;
    }

    .partner-card {
        padding: 12px;
    }

    .partner-name {
        font-size: 17px;
    }

    .discount-badge {
        min-width: 48px;
        height: 48px;
        font-size: 16px;
    }

    .partner-logo {
        width: 48px;
        height: 48px;
    }

    .partner-badges {
        gap: 8px;
    }

    .partner-levels {
        gap: 12px;
        margin-bottom: 12px;
    }

    .level-item {
        padding: 10px 8px;
    }

    .level-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .level-discount {
        font-size: 18px;
    }

    .partner-actions {
        gap: 12px;
    }

    .action-btn {
        padding: 14px 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .partner-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =============================================
   DESKTOP LAYOUT - 3 COLUMNS GRID
   ============================================= */
@media (min-width: 1024px) {
    .partners-page {
        max-width: 1320px;
        padding: 0px;
    }

    .partners-header {
        text-align: left;
        margin-bottom: 32px;
    }

    .partners-title {
        font-size: 36px;
    }

    /* Category - no accordion on desktop */
    .partner-category {
        background: transparent;
        margin-bottom: 24px;
    }

    .category-header {
        padding: 0 0 24px 0;
        cursor: default;
        background: transparent;
    }

    .category-header:hover {
        background: transparent;
    }

    /* Hide toggle button on desktop */
    .category-toggle {
        display: none;
    }

    /* Always show content on desktop */
    .category-content {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        padding: 0;
    }

    /* Partner cards */
    .partner-card {
        background: #fff;
        border: 1px solid #f3f3f3;
        display: flex;
        flex-direction: column;
    }

    /* Hide discount badge on desktop (shown only in levels) */
    .partner-badges .discount-badge {
        display: none;
    }

    .partner-logo {
        width: 64px;
        height: 64px;
    }

    .partner-description {
        font-size: 14px;
        flex-grow: 1;
    }

    /* Always show details on desktop */
    .partner-details {
        display: block !important;
        margin-bottom: 0;
    }

    /* Levels grid */
    .partner-levels {
        gap: 16px;
        margin-bottom: 16px;
    }

    .level-item {
        padding: 12px 8px;
    }

    .level-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
        margin-bottom: 6px;
    }

    .level-label {
        font-size: 12px;
        line-height: 12px;
        margin-top: 2px;
        margin-bottom: 0;
    }

    .level-discount {
        font-size: 16px;
        line-height: 16px;
    }

    /* Action buttons */
    .partner-actions {
        gap: 16px;
        margin-bottom: 0px;
    }

    .action-btn {
        padding: 12px;
        font-size: 14px;
        border-radius: 10px;
    }

    .action-btn svg {
        width: 16px;
        height: 16px;
    }

    /* Toggle button */
    .partner-toggle-details {
        padding: 14px;
        font-size: 14px;
        border-radius: 10px;
        display: none;
    }

    /* Address hidden on desktop */
    .partner-address {
        display: none;
    }
}

/* Tablet - 2 columns */
@media (min-width: 768px) and (max-width: 1023px) {
    .partners-page {
        max-width: 800px;
    }

    .category-content {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 24px 24px;
    }

    .partner-details {
        display: block !important;
    }

    .category-toggle {
        display: none;
    }
}

.mobile-sticky-footer-simple,
.cipauto-contact-section-shadow {
    display: none !important;
}

/* ========== Devino Partener CTA ========== */
.become-partner-section {
    max-width: 1320px;
    margin: 0 auto;
    padding: 24px 0 48px;
}

.become-partner-card {
    background: #F3F3F3;
    border-radius: 16px;
    padding: 48px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.become-partner-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.become-partner-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
}

.become-partner-title {
    font-family: 'Jost', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: #000;
    margin: 0;
}

.become-partner-desc {
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #000;
    line-height: 1.5;
    margin: 0;
    max-width: 600px;
}

.become-partner-benefits-title {
    font-family: 'Jost', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #000;
    margin: 0;
}

.become-partner-badge {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.become-partner-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.become-partner-benefits {
    display: flex;
    gap: 24px;
}

.benefit-card {
    flex: 1;
    background: #fff;
    border-radius: 6px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.benefit-icon {
    width: 32px;
    height: 32px;
}

.benefit-title {
    font-family: 'Jost', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin: 0;
}

.benefit-desc {
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #000;
    line-height: 1.5;
    margin: 0;
}

.become-partner-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    background: #3B00DD;
    color: #fff;
    border-radius: 6px;
    font-family: 'Jost', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}

.become-partner-btn:hover {
    background: #2E00B0;
}

/* Responsive */
@media (max-width: 768px) {

    .become-partner-section {
        padding-top: 0;
    }

    .become-partner-card {
        padding: 12px;
    }

    .become-partner-top {
        flex-direction: row;
    }

    .become-partner-title {
        font-size: 28px;
    }

    .become-partner-badge {
        width: 70px;
        height: 70px;
    }

    .become-partner-benefits {
        flex-direction: column;
        gap: 12px;
    }

    .become-partner-benefits-title {
        font-size: 20px;
    }
}