/* Features Page Styles */

/* Page Hero */
.page-hero {
    padding: 160px 0 80px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    text-align: center;
}

.page-hero h1 {
    color: white;
    margin-bottom: 20px;
    font-size: 3.5rem;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.8;
}

/* Features Detail Sections */
.features-detail {
    padding: 100px 0;
}

.features-detail.bg-light {
    background-color: var(--light-color);
}

body.dark-mode .features-detail.bg-light {
    background-color: #1e293b;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--gray-color);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Feature Detail Grid */
.feature-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-detail-card {
    display: flex;
    gap: 40px;
    align-items: center;
    background-color: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

body.dark-mode .feature-detail-card {
    background-color: var(--gray-light);
}

.feature-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-detail-icon {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

.feature-detail-content {
    flex: 1;
}

.feature-detail-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

body.dark-mode .feature-detail-content h3 {
    color: white;
}

.feature-detail-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--gray-color);
}

/* Feature List */
.feature-list {
    list-style: none;
    margin-top: 25px;
}

.feature-list li {
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    font-weight: 500;
    color: var(--dark-color);
}

body.dark-mode .feature-list li {
    color: white;
}

.feature-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Progress Stats */
.progress-stats {
    margin-top: 25px;
    max-width: 400px;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.progress-item span:first-child {
    width: 100px;
    font-weight: 500;
    color: var(--dark-color);
}

body.dark-mode .progress-item span:first-child {
    color: white;
}

.progress-bar {
    flex: 1;
    height: 10px;
    background-color: var(--gray-light);
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
    transition: width 1s ease-in-out;
}

.progress-item span:last-child {
    width: 50px;
    text-align: right;
    font-weight: 600;
    color: var(--primary-color);
}

/* Server Count */
.server-count {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.count-item {
    text-align: center;
}

.count-item h4 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.count-item p {
    color: var(--gray-color);
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
}

/* Platforms Section */
.platforms-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

body.dark-mode .platforms-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.platform-card {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

body.dark-mode .platform-card {
    background-color: var(--gray-light);
}

.platform-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.platform-card i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.platform-card h4 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.platform-card p {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin: 0;
}

/* Special Features Grid */
.special-features {
    padding: 100px 0;
}

.special-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.special-feature-card {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

body.dark-mode .special-feature-card {
    background-color: var(--gray-light);
}

.special-feature-card:hover {
    transform: translateY(-5px);
}

.special-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.special-feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.special-feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.special-feature-card p {
    color: var(--gray-color);
    line-height: 1.7;
}

/* Comparison Table */
.comparison-section {
    padding: 100px 0;
    background-color: var(--light-color);
}

body.dark-mode .comparison-section {
    background-color: #1e293b;
}

.comparison-table {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 50px;
}

body.dark-mode .comparison-table {
    background-color: var(--gray-light);
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th {
    background-color: var(--dark-color);
    color: white;
    padding: 20px;
    text-align: left;
    font-weight: 600;
    font-size: 1.1rem;
}

.comparison-table td {
    padding: 20px;
    border-bottom: 1px solid var(--gray-light);
    color: var(--dark-color);
}

body.dark-mode .comparison-table td {
    color: white;
}

.comparison-table tr:hover {
    background-color: rgba(37, 99, 235, 0.05);
}

.feature-indicator {
    display: inline-block;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    text-align: center;
    line-height: 25px;
    font-weight: bold;
}

.feature-yes {
    background-color: var(--success-color);
    color: white;
}

.feature-no {
    background-color: var(--gray-color);
    color: white;
}

/* Stats Banner */
.stats-banner {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.stats-banner .container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
}

.stat-banner-item {
    text-align: center;
}

.stat-banner-item h3 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    color: white;
}

.stat-banner-item p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin: 0;
}

/* How It Works */
.how-it-works {
    padding: 100px 0;
}

.steps-container {
    max-width: 800px;
    margin: 60px auto 0;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 50px;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 40px;
    top: 70px;
    bottom: -50px;
    width: 2px;
    background-color: var(--gray-light);
}

.step-number {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 700;
    z-index: 1;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.step-content p {
    color: var(--gray-color);
    line-height: 1.7;
}

/* Feature Badges */
.feature-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.badge {
    display: inline-block;
    padding: 8px 15px;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-hero h1 {
        font-size: 2.8rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .feature-detail-card {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }
    
    .feature-detail-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .feature-list li {
        text-align: left;
    }
    
    .progress-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .progress-item span:first-child {
        width: 100%;
    }
    
    .progress-bar {
        width: 100%;
    }
    
    .server-count {
        justify-content: center;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 140px 0 60px;
    }
    
    .page-hero h1 {
        font-size: 2.2rem;
    }
    
    .page-hero p {
        font-size: 1rem;
    }
    
    .features-detail {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .step:not(:last-child)::after {
        left: 50%;
        transform: translateX(-50%);
        height: 40px;
        top: 80px;
        bottom: auto;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .platforms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-banner-item h3 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .feature-detail-card {
        padding: 20px;
    }
    
    .feature-detail-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .platforms-grid {
        grid-template-columns: 1fr;
    }
    
    .special-features-grid {
        grid-template-columns: 1fr;
    }
    
    .server-count {
        gap: 20px;
    }
    
    .count-item h4 {
        font-size: 2rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-detail-card {
    animation: fadeInUp 0.6s ease-out;
}

.feature-detail-card:nth-child(1) { animation-delay: 0.1s; }
.feature-detail-card:nth-child(2) { animation-delay: 0.2s; }
.feature-detail-card:nth-child(3) { animation-delay: 0.3s; }
.feature-detail-card:nth-child(4) { animation-delay: 0.4s; }

/* Hover Effects */
.feature-detail-icon {
    transition: var(--transition);
}

.feature-detail-card:hover .feature-detail-icon {
    transform: rotate(10deg) scale(1.1);
}

/* Tooltip for Feature Badges */
.badge {
    position: relative;
    cursor: help;
}

.badge:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--dark-color);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    margin-bottom: 10px;
    z-index: 100;
}

.badge:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--dark-color);
    margin-bottom: 0;
}

