/* Rates Page Specific Styles */

/* Main content area with dashboard-style background */
.rates-main {
    margin-top: 80px;
    padding: 60px 0;
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.rates-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.6) 0%, rgba(59, 130, 246, 0.5) 50%, rgba(96, 165, 250, 0.4) 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    opacity: 0.8;
    z-index: 1;
}

.rates-main::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    animation: floatingBubbles 12s ease infinite;
    z-index: 2;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes floatingBubbles {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(120deg); }
    66% { transform: translateY(-5px) rotate(240deg); }
}

.rates-main .container {
    position: relative;
    z-index: 10;
}

/* Enhanced section header for rates page */
.rates-main .section-header {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 60px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.rates-main .section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
    z-index: -1;
}

.rates-main .section-header:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.rates-main .section-header h1 {
    color: white;
    font-weight: 600;
    margin-bottom: 10px;
}

.rates-main .section-header p {
    color: rgba(255, 255, 255, 0.9);
}

/* Rates cards */
.rates-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.rates-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
    z-index: -1;
}

.rates-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.rates-card-title {
    color: white;
    margin-bottom: 30px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.rates-table-container {
    overflow-x: auto;
}

.rates-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.rates-table thead tr {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.rates-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: white;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rates-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.rates-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transform: translateY(-1px);
}

.rates-table td {
    padding: 20px;
    background: transparent;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.95);
}

.rates-table .account-type {
    font-weight: 600;
    color: white;
}

.rates-table .balance-info {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.rates-table .rate-info {
    color: #4ade80;
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.3);
}

.rates-table .loan-rate-info {
    color: #60a5fa;
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.3);
}

.rates-table .features-info {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Disclaimer section */
.rates-disclaimer {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.rates-disclaimer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.08) 100%);
    pointer-events: none;
    z-index: -1;
}

.rates-disclaimer:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.rates-disclaimer-title {
    color: #fbbf24;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.rates-disclaimer p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 10px;
    font-weight: 500;
}

.rates-disclaimer p:last-child {
    margin-bottom: 0;
}

/* Call to action section */
.rates-cta {
    text-align: center;
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.rates-cta:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.rates-cta-title {
    color: white;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
}

.rates-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    font-weight: 500;
}

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

.rates-cta .btn {
    min-width: 150px;
}

/* Responsive Design for Rates Page */
@media (max-width: 768px) {
    .rates-main {
        padding: 40px 0;
    }
    
    .rates-card {
        padding: 30px 20px;
        margin-bottom: 20px;
    }
    
    .rates-card-title {
        font-size: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .rates-table th,
    .rates-table td {
        padding: 12px 8px;
        font-size: 0.9rem;
    }
    
    .rates-table .rate-info,
    .rates-table .loan-rate-info {
        font-size: 1rem;
    }
    
    .rates-disclaimer {
        padding: 15px;
    }
    
    .rates-disclaimer-title {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .rates-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .rates-cta .btn {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .rates-card {
        padding: 20px 15px;
    }
    
    .rates-table-container {
        font-size: 0.8rem;
    }
    
    .rates-table th,
    .rates-table td {
        padding: 8px 4px;
    }
    
    .section-header h1 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
}
