/**
 * CTA Box Annunci Cuccioli & Auth Modal
 *
 * @package Caniincasa
 * @since 1.0.1
 */

/* ========================================
   TOPBAR & MOBILE MENU CTA BUTTON
======================================== */

/* TopBar CTA - Link o Button */
.top-bar-nav .top-bar-cta,
a.top-bar-cta,
button.top-bar-cta {
    display: inline-flex !important;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C61 100%) !important;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    line-height: 1.4;
    white-space: nowrap;
}

.top-bar-nav .top-bar-cta:hover,
a.top-bar-cta:hover,
button.top-bar-cta:hover {
    background: linear-gradient(135deg, #FF8C61 0%, #FF6B35 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
    transform: translateY(-1px);
}

.top-bar-nav .top-bar-cta:active,
a.top-bar-cta:active,
button.top-bar-cta:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.3);
}

.top-bar-cta svg {
    stroke: #ffffff;
}

/* Mobile CTA Link/Button */
.mobile-cta-link {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C61 100%) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    margin-bottom: 0.75rem !important;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3) !important;
}

.mobile-cta-link:hover {
    background: linear-gradient(135deg, #FF8C61 0%, #FF6B35 100%) !important;
    transform: translateX(5px);
}

.mobile-cta-link svg {
    stroke: #ffffff;
}

/* ========================================
   CTA BOX
======================================== */

.annunci-cuccioli-cta-box {
    margin: 2.5rem 0;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C61 100%);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.25);
    overflow: hidden;
    position: relative;
}

.annunci-cuccioli-cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.cta-content {
    padding: 2rem;
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
}

.cta-description {
    margin: 0 0 1.5rem 0;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
}

.cta-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    text-align: left;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
}

.cta-feature svg {
    flex-shrink: 0;
}

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background: #ffffff;
    color: #FF6B35;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: #f8f9fa;
}

/* ========================================
   AUTH MODAL
======================================== */

.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
}

.auth-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.auth-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.auth-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.2s ease;
    z-index: 10;
}

.auth-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.auth-modal-header {
    padding: 2rem 2rem 1.5rem 2rem;
    text-align: center;
    border-bottom: 2px solid #f0f0f0;
}

.auth-modal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.auth-modal-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #2D3E50;
}

.auth-modal-subtitle {
    margin: 0;
    font-size: 1rem;
    color: #666;
}

.auth-modal-body {
    padding: 2rem;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
}

.auth-tab {
    flex: 1;
    padding: 1rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    color: #666;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-tab:hover {
    color: #2D3E50;
    background: #f8f9fa;
}

.auth-tab.active {
    color: #FF6B35;
    border-bottom-color: #FF6B35;
    font-weight: 600;
}

.tab-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tab Content */
.auth-tab-content {
    display: none;
}

.auth-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-intro {
    margin: 0 0 1.5rem 0;
    color: #666;
    text-align: center;
}

/* Benefits List */
.auth-benefits {
    margin-bottom: 2rem;
}

.auth-benefits h3 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    color: #2D3E50;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #4CAF50;
}

.benefits-list li svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.benefits-list li span {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #2D3E50;
}

/* Auth Buttons */
.btn-auth-primary,
.btn-auth-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-auth-primary {
    background: linear-gradient(135deg, #FF6B35, #FF8C61);
    color: #ffffff;
    margin-bottom: 1rem;
}

.btn-auth-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-auth-secondary {
    background: #f0f0f0;
    color: #2D3E50;
    margin-bottom: 1rem;
}

.btn-auth-secondary:hover {
    background: #e0e0e0;
}

.btn-block {
    display: block;
    width: 100%;
}

.auth-note {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin: 1rem 0 0 0;
}

.auth-note a {
    color: #FF6B35;
    text-decoration: underline;
}

.auth-switch-tab {
    background: none;
    border: none;
    color: #FF6B35;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

/* Responsive */
@media (max-width: 767px) {
    .cta-content {
        padding: 1.5rem;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .cta-description {
        font-size: 1rem;
    }

    .cta-features {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .btn-cta-primary {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .auth-modal-content {
        width: 95%;
        border-radius: 12px;
    }

    .auth-modal-header {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
    }

    .auth-modal-title {
        font-size: 1.5rem;
    }

    .auth-modal-body {
        padding: 1.5rem;
    }

    .auth-tabs {
        flex-direction: column;
        gap: 0.25rem;
    }

    .auth-tab {
        border-bottom: 1px solid #e0e0e0;
        border-left: 3px solid transparent;
    }

    .auth-tab.active {
        border-bottom-color: #e0e0e0;
        border-left-color: #FF6B35;
    }

    .benefits-list li {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}
