/* Rankings & Features Cards Styles for CustomDreams Template */

/* Rankings Section */
.dream-rankings-section {
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(15, 15, 30, 0.98) 100%);
    position: relative;
    overflow: hidden;
}

.dream-rankings-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 218, 138, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 77, 77, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.dream-section-header {
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.dream-kicker {
    color: #ffda8a;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 10px 0;
}

.dream-section-header h2 {
    color: #fff;
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.dream-section-lead {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Ranking Card */
.dream-ranking-card {
    display: block;
    background: linear-gradient(135deg, rgba(40, 40, 60, 0.8) 0%, rgba(30, 30, 50, 0.9) 100%);
    border: 1px solid rgba(255, 218, 138, 0.1);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.dream-ranking-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 218, 138, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dream-ranking-card:hover::before {
    opacity: 1;
}

.dream-ranking-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 218, 138, 0.4);
    box-shadow: 0 10px 30px rgba(255, 218, 138, 0.15);
    text-decoration: none;
}

.dream-ranking-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffda8a 0%, #ff9d4d 100%);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(255, 218, 138, 0.3);
}

.dream-ranking-icon i {
    font-size: 28px;
    color: #1a1a2e;
}

.dream-ranking-card h4 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
    transition: color 0.3s ease;
}

.dream-ranking-card:hover h4 {
    color: #ffda8a;
}

.dream-ranking-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin: 0;
    line-height: 1.4;
}

/* Feature Card */
.dream-feature-card {
    background: linear-gradient(135deg, rgba(40, 40, 60, 0.6) 0%, rgba(30, 30, 50, 0.7) 100%);
    border: 1px solid rgba(255, 77, 77, 0.1);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.dream-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 77, 77, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dream-feature-card:hover::before {
    opacity: 1;
}

.dream-feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 77, 77, 0.4);
    box-shadow: 0 10px 30px rgba(255, 77, 77, 0.15);
}

.dream-feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff4d4d 0%, #ff9d4d 100%);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(255, 77, 77, 0.3);
}

.dream-feature-icon i {
    font-size: 28px;
    color: #fff;
}

.dream-feature-icon svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.dream-feature-card h4 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
    transition: color 0.3s ease;
}

.dream-feature-card:hover h4 {
    color: #ff4d4d;
}

.dream-feature-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin: 0;
    line-height: 1.4;
}

/* Features Section - Different background */
.dream-features-section {
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(15, 15, 30, 0.98) 0%, rgba(26, 26, 46, 0.95) 100%);
    position: relative;
    overflow: hidden;
}

.dream-features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 77, 77, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(255, 218, 138, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .dream-section-header h2 {
        font-size: 36px;
    }
    
    .dream-ranking-card,
    .dream-feature-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .dream-rankings-section,
    .dream-features-section {
        padding: 40px 0;
    }
    
    .dream-section-header h2 {
        font-size: 28px;
    }
    
    .dream-section-lead {
        font-size: 16px;
    }
    
    .dream-ranking-card,
    .dream-feature-card {
        min-height: 160px;
        padding: 25px 15px;
    }
}

/* View All Button */
.dream-view-all-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 35px;
    background: linear-gradient(135deg, #ffda8a 0%, #ff9d4d 100%);
    color: #1a1a2e;
    font-weight: 700;
    font-size: 16px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 218, 138, 0.3);
}

.dream-view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 218, 138, 0.4);
    color: #1a1a2e;
    text-decoration: none;
}
