/**
 * Subscriptions Page Styles
 * Isolated module - all classes prefixed with .trojan-
 * No conflicts with other styles
 */

/* Subscriptions Hero */
.trojan-subscriptions-hero {
    padding: 5rem 0 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    text-align: center;
    margin-top: -72px;
    padding-top: calc(72px + 5rem);
}

.trojan-subscriptions-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.trojan-subscriptions-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    opacity: 0.95;
}

/* Plans Section */
.trojan-subscriptions-plans {
    padding: 5rem 0;
    background: #f9fafb;
}

.trojan-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.trojan-plan-card {
    background: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 1rem;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.trojan-plan-card:hover {
    border-color: #2563eb;
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.trojan-plan-card.trojan-plan-featured {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-color: #667eea;
    transform: scale(1.05);
}

.trojan-plan-card.trojan-plan-featured:hover {
    transform: scale(1.08) translateY(-4px);
}

.trojan-plan-badge-featured {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #fbbf24;
    color: #1a1a1a;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 700;
}

.trojan-plan-header {
    margin-bottom: 2rem;
}

.trojan-plan-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.trojan-plan-card.trojan-plan-featured .trojan-plan-name {
    color: #ffffff;
}

.trojan-plan-badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    padding: 0.375rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Plan-specific badge colors */
.trojan-plan-badge-bronze {
    background: rgba(205, 127, 50, 0.15);
    color: #cd7f32;
    border: 1px solid rgba(205, 127, 50, 0.3);
}

.trojan-plan-badge-silver {
    background: rgba(192, 192, 192, 0.15);
    color: #c0c0c0;
    border: 1px solid rgba(192, 192, 192, 0.3);
}

.trojan-plan-badge-gold {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.trojan-plan-card.trojan-plan-featured .trojan-plan-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Override for featured plan with silver badge */
.trojan-plan-card.trojan-plan-featured .trojan-plan-badge-silver {
    background: rgba(192, 192, 192, 0.25);
    color: #c0c0c0;
    border: 1px solid rgba(192, 192, 192, 0.4);
}

.trojan-plan-price {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #1a1a1a;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
}

.trojan-plan-card.trojan-plan-featured .trojan-plan-price {
    color: #ffffff;
}

.trojan-plan-amount {
    font-size: 3.5rem;
}

.trojan-plan-currency {
    font-size: 1.5rem;
    margin-left: 0.25rem;
}

.trojan-plan-period {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.7;
}

.trojan-plan-features {
    margin-bottom: 2rem;
    text-align: right;
}

.trojan-plan-features-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.trojan-plan-features-list li {
    padding: 0.75rem 0;
    font-weight: 600;
    color: #4a5568;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.trojan-plan-features-list li:last-child {
    border-bottom: none;
}

.trojan-plan-card.trojan-plan-featured .trojan-plan-features-list li {
    color: rgba(255, 255, 255, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.trojan-plan-cta {
    margin-top: auto;
}

.trojan-plan-button {
    display: inline-block;
    width: 100%;
    padding: 1rem 2rem;
    background: #2563eb;
    color: #ffffff;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.trojan-plan-button:hover {
    background: #1d4ed8;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.trojan-plan-card.trojan-plan-featured .trojan-plan-button {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff !important;
}

.trojan-plan-card.trojan-plan-featured .trojan-plan-button:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff !important;
}

/* Comparison Table */
.trojan-comparison {
    padding: 5rem 0;
    background: #ffffff;
}

.trojan-comparison-table-wrapper {
    overflow-x: auto;
    margin-top: 2rem;
    -webkit-overflow-scrolling: touch;
}

.trojan-comparison-table {
    width: 100%;
    min-width: 800px;
}

.trojan-comparison-table {
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.trojan-comparison-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    text-align: center;
    font-size: 1.125rem;
}

.trojan-comparison-table td {
    padding: 1rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 600;
    color: #4a5568;
}

.trojan-comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.trojan-comparison-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.trojan-comparison-table td:first-child {
    text-align: right;
    font-weight: 700;
    color: #1a1a1a;
    min-width: 200px;
}

.trojan-plan-comp-price {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0.9;
    margin-top: 0.5rem;
}

.trojan-comparison-table td {
    font-size: 0.9375rem;
}

.trojan-comparison-table td:not(:first-child) {
    font-size: 1.25rem;
    color: #059669;
}

.trojan-comparison-table td:not(:first-child) {
    color: #059669;
}

.trojan-comparison-table td:not(:first-child):empty,
.trojan-comparison-table td:not(:first-child) {
    position: relative;
}

.trojan-comparison-table tbody tr:hover {
    background: #f3f4f6;
}

/* Responsive */
@media (max-width: 768px) {
    .trojan-subscriptions-title {
        font-size: 2rem;
    }
    
    .trojan-plans-grid {
        grid-template-columns: 1fr;
    }
    
    .trojan-plan-card.trojan-plan-featured {
        transform: scale(1);
    }
    
    .trojan-plan-card.trojan-plan-featured:hover {
        transform: translateY(-4px);
    }
    
    .trojan-comparison-table-wrapper {
        margin: 0 -1rem;
        padding: 0 1rem;
    }
    
    .trojan-comparison-table {
        font-size: 0.875rem;
        min-width: 700px;
    }
    
    .trojan-comparison-table th,
    .trojan-comparison-table td {
        padding: 0.75rem 1rem;
    }
    
    .trojan-comparison-table td:not(:first-child) {
        font-size: 1rem;
    }
}


