/* ISPDEEP Frontend Styles */

/* Language Switcher */
.ispdeep-language-switcher {
    margin: 10px 0;
}

.ispdeep-language-switcher.dropdown select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.ispdeep-language-switcher.dropdown select:hover,
.ispdeep-language-switcher.dropdown select:focus {
    border-color: #0073aa;
    outline: none;
}

.ispdeep-language-switcher.list ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ispdeep-language-switcher.list li a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #333;
}

.ispdeep-language-switcher.list li.active a {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

.ispdeep-language-switcher.list li a:hover {
    background: #005a87;
    color: white;
    border-color: #005a87;
}

.ispdeep-language-switcher .flag {
    font-size: 16px;
    line-height: 1;
}

/* Pricing Table */
.ispdeep-pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
    max-width: 1200px;
}

.ispdeep-pricing-card {
    background: white;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ispdeep-pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.ispdeep-pricing-card.featured {
    border-color: #0073aa;
    transform: scale(1.05);
}

.ispdeep-pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #0073aa;
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.pricing-plan-name {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.pricing-price {
    font-size: 48px;
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 5px;
}

.pricing-price .currency {
    font-size: 24px;
    vertical-align: top;
}

.pricing-credits {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.pricing-description {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.pricing-features li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    color: #555;
}

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

.pricing-features li::before {
    content: '✓';
    color: #28a745;
    font-weight: bold;
    margin-right: 10px;
}

.pricing-button {
    display: inline-block;
    background: #0073aa;
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.pricing-button:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

/* API Documentation */
.ispdeep-api-docs {
    max-width: 800px;
    margin: 0 auto;
}

.api-section {
    margin-bottom: 40px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.api-section h3 {
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.api-endpoint {
    background: #333;
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    font-family: monospace;
    margin: 10px 0;
    overflow-x: auto;
}

.api-code-block {
    background: #2d3748;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
}

.api-code-block .comment {
    color: #68d391;
}

.api-code-block .string {
    color: #fbb6ce;
}

.api-code-block .keyword {
    color: #90cdf4;
}

.api-response {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin: 10px 0;
}

.api-response-success {
    border-left: 4px solid #28a745;
}

.api-response-error {
    border-left: 4px solid #dc3545;
}

/* About Section */
.ispdeep-about-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.ispdeep-about-content h2 {
    color: #333;
    margin-top: 40px;
    margin-bottom: 20px;
}

.ispdeep-about-content p {
    margin-bottom: 20px;
    color: #555;
}

/* Hero Section */
.ispdeep-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    margin-bottom: 60px;
}

.ispdeep-hero h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.ispdeep-hero p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.ispdeep-hero .cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.ispdeep-hero .cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 16px;
}

.ispdeep-hero .cta-button.primary {
    background: white;
    color: #667eea;
}

.ispdeep-hero .cta-button.primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.ispdeep-hero .cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.ispdeep-hero .cta-button.secondary:hover {
    background: white;
    color: #667eea;
}

/* Image Comparison */
.ispdeep-comparison {
    margin: 60px 0;
    text-align: center;
}

.ispdeep-comparison h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: #333;
}

.comparison-slider {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.comparison-images {
    position: relative;
    width: 100%;
    height: 400px;
}

.comparison-images img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comparison-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.comparison-slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    cursor: ew-resize;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    z-index: 10;
}

.comparison-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-weight: bold;
}

.comparison-labels .before {
    color: #dc3545;
}

.comparison-labels .after {
    color: #28a745;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ispdeep-pricing-table {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ispdeep-pricing-card.featured {
        transform: none;
    }
    
    .ispdeep-hero h1 {
        font-size: 36px;
    }
    
    .ispdeep-hero p {
        font-size: 18px;
    }
    
    .ispdeep-hero .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .ispdeep-language-switcher.list ul {
        justify-content: center;
    }
    
    .comparison-slider {
        max-width: 100%;
    }
    
    .comparison-images {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .ispdeep-hero {
        padding: 60px 15px;
    }
    
    .ispdeep-hero h1 {
        font-size: 28px;
    }
    
    .ispdeep-hero p {
        font-size: 16px;
    }
    
    .pricing-price {
        font-size: 36px;
    }
    
    .api-code-block {
        font-size: 12px;
        padding: 15px;
    }
}