/**
 * AI Smart Advisors - Hosting Page Styles
 */

/* Hosting Hero */
.hosting-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0c4a6e 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hosting-hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hosting-hero-content .hero-badge {
    background: rgba(6, 182, 212, 0.2);
    color: var(--accent-light);
}

.hosting-hero-content .hero-title {
    color: white;
}

.hosting-hero-content .hero-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.hosting-trust {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hosting-trust .trust-item {
    color: rgba(255, 255, 255, 0.7);
}

.hosting-trust .trust-icon {
    font-size: 1.5rem;
}

/* Server Graphic Animation */
.hosting-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.server-graphic {
    position: relative;
    padding: 2rem;
}

.server-rack {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border: 2px solid #334155;
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.server-unit {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0.75rem 1rem;
    background: linear-gradient(90deg, #1e293b 0%, #334155 100%);
    border-radius: 0.5rem;
    border: 1px solid #475569;
}

.server-light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: blink 1.5s ease-in-out infinite;
}

.server-light.green {
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
}

.server-light.blue {
    background: #3b82f6;
    box-shadow: 0 0 10px #3b82f6;
    animation-delay: 0.5s;
}

.server-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
    z-index: -1;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
}

/* Hosting Features */
.hosting-features {
    background: var(--bg-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--bg-tertiary);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

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

.feature-card h3 {
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Deployment Options */
.deployment-options {
    background: var(--bg-secondary);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.option-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--bg-tertiary);
    position: relative;
    transition: all 0.3s ease;
}

.option-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.option-card.featured {
    background: var(--gradient-secondary);
    color: white;
    border: none;
}

.option-card.featured .option-description,
.option-card.featured .option-features li {
    color: rgba(255, 255, 255, 0.8);
}

.option-card.featured .option-ideal {
    color: rgba(255, 255, 255, 0.9);
}

.option-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.option-icon {
    font-size: 2.5rem;
}

.option-header h3 {
    margin: 0;
}

.option-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.option-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.option-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.option-ideal {
    font-size: 0.875rem;
    color: var(--text-muted);
    padding-top: 1rem;
    border-top: 1px solid var(--bg-tertiary);
}

/* Hosting Plans */
.hosting-plans {
    background: var(--bg-primary);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.plan-card {
    background: var(--bg-secondary);
    border: 1px solid var(--bg-tertiary);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.plan-card.featured {
    background: var(--gradient-secondary);
    color: white;
    border: none;
}

.plan-card.featured .plan-subtitle,
.plan-card.featured .plan-features li {
    color: rgba(255, 255, 255, 0.8);
}

.plan-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--bg-tertiary);
}

.plan-card.featured .plan-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.plan-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.plan-price .currency {
    font-size: 1.5rem;
    color: var(--primary);
}

.plan-card.featured .plan-price .currency {
    color: var(--accent-light);
}

.plan-price .amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
}

.plan-card.featured .plan-price .amount {
    color: white;
}

.plan-price .period {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.plan-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
}

.plan-features li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--bg-tertiary);
}

.plan-card.featured .plan-features li {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.plans-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Comparison Table */
.hosting-comparison {
    background: var(--bg-secondary);
}

.comparison-table-container {
    overflow-x: auto;
    margin-bottom: 3rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--bg-tertiary);
}

.comparison-table th {
    background: var(--bg-tertiary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comparison-table th.column-private {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.comparison-table th.column-cloud {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.comparison-table td.private {
    color: var(--success);
    font-weight: 500;
}

.comparison-table td.cloud {
    color: var(--text-secondary);
}

/* Savings Calculator */
.savings-calculator {
    background: var(--bg-primary);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.savings-calculator h3 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.savings-calculator > p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.calculator-form {
    max-width: 800px;
    margin: 0 auto;
}

.calculator-inputs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.input-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--bg-tertiary);
    border-radius: var(--radius-md);
    transition: border-color 0.2s ease;
}

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

.calculator-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.result-card {
    padding: 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
}

.result-card h4 {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.result-amount {
    font-size: 1.5rem;
    font-weight: 700;
}

.result-percent {
    font-size: 0.875rem;
    color: var(--success);
    margin-top: 0.25rem;
}

.cloud-cost .result-amount {
    color: var(--error);
}

.private-cost .result-amount {
    color: var(--success);
}

.savings .result-amount {
    color: var(--success);
}

.savings-calculator .btn {
    width: 100%;
}

/* Security Section */
.hosting-security {
    background: var(--bg-primary);
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.security-item {
    text-align: center;
    padding: 2rem;
}

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

.security-item h3 {
    margin-bottom: 0.75rem;
}

.security-item p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* CTA Section */
.hosting-cta {
    background: var(--gradient-primary);
    padding: 5rem 0;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-secondary {
    background: transparent;
    border-color: white;
    color: white;
}

.cta-buttons .btn-secondary:hover {
    background: white;
    color: var(--primary);
}

/* Responsive */
@media (max-width: 968px) {
    .hosting-hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hosting-trust {
        justify-content: center;
    }

    .features-grid,
    .options-grid,
    .plans-grid,
    .security-grid {
        grid-template-columns: 1fr;
    }

    .calculator-inputs,
    .calculator-results {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}
