/* 3D IFSC Page Styles */

:root {
    --ifsc-primary: #667eea;
    --ifsc-secondary: #764ba2;
    --ifsc-accent: #00d2ff;
    --ifsc-bg-light: #f5f7fa;
    --ifsc-card-bg: #ffffff;
    --ifsc-text-main: #2d3748;
    --ifsc-text-muted: #718096;
    
    /* 3D Variables */
    --shadow-soft: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-3d: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    --shadow-pressed: inset 2px 2px 5px rgba(0,0,0,0.1), inset -2px -2px 5px rgba(255,255,255,0.8);
    --shadow-floating: 0 15px 35px rgba(102, 126, 234, 0.2);
    
    --transform-hover: translateY(-5px);
}

/* General Layout */
.ifsc-page {
    background-color: var(--ifsc-bg-light);
    perspective: 1000px;
}

/* Hero Section 3D */
.ifsc-page .hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding-top: 100px;
    padding-bottom: 5rem;
    position: relative;
    overflow: visible;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    margin-bottom: -3rem;
}

.ifsc-page .hero-content {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.ifsc-page .hero-title {
    text-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transform: translateZ(20px);
}

.ifsc-page .hero-badge {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateZ(30px) rotateX(5deg);
    display: inline-block;
}

/* 3D Metrics Card */
.ifsc-page .hero-insight {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: var(--shadow-floating);
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ifsc-page .hero-insight:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
}

.ifsc-page .metric-tile {
    border-radius: 15px;
    padding: 1.2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.ifsc-page .metric-tile::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
    z-index: -1;
}

.ifsc-page .metric-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.ifsc-page .metric-value {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
    display: block;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Search Container 3D */
.ifsc-page .ifsc-section {
    position: relative;
    z-index: 10;
    padding-top: 0;
    background: transparent;
}

.ifsc-page .ifsc-card {
    background: var(--ifsc-card-bg);
    border-radius: 20px;
    border: none;
    box-shadow: var(--shadow-3d);
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

/* 3D Inputs */
.ifsc-page .form-control, 
.ifsc-page .form-select {
    background-color: #f0f4f8;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.05), inset -2px -2px 5px rgba(255,255,255,1);
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--ifsc-text-main);
}

.ifsc-page .form-control:focus, 
.ifsc-page .form-select:focus {
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2), inset 1px 1px 3px rgba(0,0,0,0.05);
    border-color: var(--ifsc-primary);
    transform: translateY(-2px);
}

.ifsc-page .input-group-text {
    background-color: #f0f4f8;
    border: none;
    border-radius: 12px 0 0 12px;
    color: var(--ifsc-primary);
    padding-left: 1.2rem;
}

.ifsc-page .input-group .form-control {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* 3D Button */
.ifsc-page .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.ifsc-page .btn-primary:before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.ifsc-page .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.ifsc-page .btn-primary:hover:before {
    opacity: 1;
}

.ifsc-page .btn-primary:active {
    transform: translateY(1px);
    box-shadow: inset 0 3px 5px rgba(0,0,0,0.2);
}

/* Features Cards - Floating Effect */
.ifsc-page .feature-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    border: none;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    z-index: 1;
}

.ifsc-page .feature-card:hover {
    transform: perspective(1000px) rotateX(5deg) translateY(-10px);
    box-shadow: var(--shadow-3d);
    z-index: 2;
}

.ifsc-page .feature-card i {
    background: linear-gradient(135deg, #e0e7ff 0%, #f5f7fa 100%);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    color: var(--ifsc-primary);
    box-shadow: inset 0 0 20px rgba(102, 126, 234, 0.1);
    transition: transform 0.4s ease;
}

.ifsc-page .feature-card:hover i {
    transform: scale(1.1) rotate(10deg);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

/* Advanced Search Toggle */
#ifscFilterToggle {
    background: #fff;
    border: 1px solid rgba(102, 126, 234, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

#ifscFilterToggle:hover {
    background: #f8fafc;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

/* Results Table 3D */
.ifsc-page .table-responsive {
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    background: #fff;
    overflow: hidden;
}

.ifsc-page .table thead th {
    background: #2d3748;
    color: #fff;
    border: none;
    padding: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.ifsc-page .table tbody tr {
    transition: all 0.2s;
}

.ifsc-page .table tbody tr:hover {
    background-color: #f7fafc;
    transform: scale(1.005);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    z-index: 2;
    position: relative;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .ifsc-page .hero-insight {
        transform: none;
        margin-top: 2rem;
    }
    
    .ifsc-page .hero-insight:hover {
        transform: translateY(-5px);
    }
    
    .ifsc-page .hero-section {
        clip-path: none;
        padding-bottom: 3rem;
        margin-bottom: 0;
    }
    
    .ifsc-page .ifsc-card {
        transform: none;
        margin-top: -2rem;
    }
}
