/* ================================
   PRICING PAGE STYLES
   ================================ */

/* Pricing-specific variables (inherits from landing-style.css) */

/* Language Selector */
.language-selector {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    border-color: var(--primary-color);
}

.flag-img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.arrow {
    font-size: 10px;
    color: var(--text-light);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 100;
    min-width: 150px;
}

.lang-dropdown.show {
    display: block;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.lang-option:hover {
    background: rgba(67, 177, 168, 0.1);
}

/* ================================
   MAIN CONTENT
   ================================ */

.pricing-main {
    text-align: center;
}

.pricing-title {
    margin-bottom: 50px;
}

.pricing-title h1 {
    font-family: 'Fredoka', sans-serif;
    font-size: 42px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.pricing-title p {
    font-size: 18px;
    color: var(--text-light);
}

/* ================================
   PLAN CARDS
   ================================ */

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.plan-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.plan-card.popular {
    border: 3px solid var(--primary-color);
}

.plan-card.popular:hover {
    transform: translateY(-5px);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.save-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--success);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.plan-header {
    margin-bottom: 30px;
}

.plan-header h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.plan-price .price {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
}

.plan-price .currency {
    font-size: 24px;
    color: var(--text-light);
}

.plan-duration {
    color: var(--text-light);
    margin-top: 5px;
}

/* Features */
.plan-features {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
}

.plan-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features .check {
    color: var(--success);
    font-weight: bold;
}

.plan-features .cross {
    color: var(--text-light);
}

.plan-features li.disabled {
    color: var(--text-light);
}

/* Buttons */
.btn-plan {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-free,
.btn-primary,
.btn-yearly {
    background: var(--primary-color);
    color: white;
}

.btn-free:hover,
.btn-primary:hover,
.btn-yearly:hover {
    background: var(--primary-dark);
}

/* ================================
   EXTRA CHILD SECTION
   ================================ */

.extra-child-section {
    margin-bottom: 40px;
}

.extra-child-box {
    background: linear-gradient(135deg, rgba(67, 177, 168, 0.1), rgba(67, 177, 168, 0.05));
    border: 2px dashed var(--primary-color);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
}

.extra-child-box h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.extra-child-box p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.btn-extra-child {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 15px 30px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-extra-child:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-extra-child span:last-child {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
}

/* ================================
   PROMO SECTION
   ================================ */

.promo-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* Tooltip Styles */
.tooltip-trigger {
    position: relative;
    display: inline-block;
    margin-left: 8px;
    cursor: help;
}

.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: var(--text-light);
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
}

.tooltip-text {
    visibility: hidden;
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-dark);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: normal;
    width: 250px;
    text-align: left;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: var(--text-dark);
}

.tooltip-trigger:hover .tooltip-text {
    visibility: visible;
}

.promo-box {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.promo-box h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.promo-input {
    display: flex;
    gap: 10px;
}

.promo-input input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
}

.promo-input input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.promo-input button {
    padding: 12px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.promo-input button:hover {
    background: var(--primary-dark);
}

/* ================================
   CURRENCY MODAL
   ================================ */

.currency-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.currency-modal-content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

.currency-modal-content h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: var(--text-dark);
    text-align: center;
}

.currency-modal-content p {
    margin: 0 0 30px 0;
    color: var(--text-light);
    text-align: center;
    font-size: 14px;
}

.currency-options {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.currency-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.currency-option:hover {
    border-color: var(--primary-color);
    background: white;
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(67, 177, 168, 0.2);
}

.currency-option .flag {
    font-size: 48px;
}

.currency-option .currency-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
}

.modal-close-btn {
    width: 100%;
    padding: 12px;
    background: var(--border);
    color: var(--text-dark);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.modal-close-btn:hover {
    background: var(--text-light);
    color: white;
}

.promo-message {
    margin-top: 10px;
    font-size: 13px;
}

.promo-message.success {
    color: var(--success);
}

.promo-message.error {
    color: var(--danger);
}

/* ================================
   NOTE & FOOTER
   ================================ */

.pricing-note {
    margin-bottom: 30px;
}

.pricing-note p {
    font-size: 13px;
    color: var(--text-light);
}

.pricing-footer {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid var(--border);
}

.pricing-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.pricing-footer a:hover {
    text-decoration: underline;
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 1024px) {
    .pricing-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto 50px;
    }

    .plan-card.popular {
        transform: scale(1);
        order: -1;
    }

    .plan-card.popular:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .pricing-title h1 {
        font-size: 32px;
    }

    .promo-section {
        grid-template-columns: 1fr;
    }
}
