/* ====================================
   EMI Calculator - Complete Styles
   Includes: Common + Tool-Specific
   ==================================== */

/* ====================================
   Common Tool Page Styles
   ==================================== */

.tool-page {
    padding-top: 0;
}

/* Breadcrumb */
.breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    color: #666666;
}

.breadcrumb a {
    color: #666666;
    text-decoration: none;
    transition: all 0.3s;
}

.breadcrumb a:hover {
    color: #667eea;
}

.breadcrumb .separator {
    margin: 0 10px;
    color: #e0e0e0;
}

.breadcrumb .current {
    color: #1a1a1a;
    font-weight: 600;
}

/* Tool Header */
.tool-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tool-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: headerPulse 3s ease-in-out infinite;
}

@keyframes headerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.tool-header-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.tool-icon-large {
    font-size: 72px;
    margin-bottom: 20px;
    animation: bounce 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.tool-header h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.tool-subtitle {
    font-size: 20px;
    opacity: 0.95;
    margin-bottom: 25px;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.tool-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 16px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-separator {
    opacity: 0.5;
}

/* Tool Content */
.tool-content {
    padding: 60px 20px;
    background: #f8f9fa;
}

/* SEO Content Section */
.seo-content {
    padding: 80px 20px;
    background: white;
}

.content-article {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.content-article h2 {
    font-size: 32px;
    font-weight: 800;
    margin-top: 50px;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.content-article h2:first-child {
    margin-top: 0;
}

.content-article h3 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 35px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.content-article p {
    margin-bottom: 20px;
    color: #666666;
    font-size: 16px;
    line-height: 1.8;
}

.content-article ul,
.content-article ol {
    margin-bottom: 25px;
    padding-left: 30px;
    color: #666666;
}

.content-article li {
    margin-bottom: 12px;
    line-height: 1.8;
}

.content-article strong {
    color: #1a1a1a;
    font-weight: 700;
}

/* Related Tools */
.related-tools {
    max-width: 900px;
    margin: 60px auto 0;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 12px;
}

.related-tools h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 30px;
    text-align: center;
    color: #1a1a1a;
}

.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.related-tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 25px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
}

.related-tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.related-tool-card .tool-icon {
    font-size: 42px;
}

.related-tool-card .tool-name {
    font-weight: 700;
    color: #1a1a1a;
}

/* ====================================
   EMI Calculator Specific Styles
   ==================================== */

.emi-calc-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.1);
    overflow: hidden;
}

.emi-calc-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 40px 30px;
    text-align: center;
    color: white;
}

.emi-calc-header h2 {
    font-size: 36px;
    margin-bottom: 10px;
    font-weight: 700;
}

.emi-calc-header p {
    font-size: 16px;
    opacity: 0.95;
    margin: 0;
}

.emi-calc-body {
    padding: 40px 30px;
}

.emi-input-section {
    display: grid;
    gap: 25px;
    margin-bottom: 30px;
}

.emi-input-group {
    position: relative;
}

.emi-input-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 15px;
}

.emi-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.emi-input-group input[type="number"] {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #1e3c72;
    transition: all 0.3s;
    font-family: inherit;
}

.emi-input-group input[type="number"]:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42,82,152,0.1);
}

.emi-input-group input[type="range"] {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
}

.emi-input-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    background: #2a5298;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.emi-input-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    background: #1e3c72;
}

.emi-input-group input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    background: #2a5298;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.emi-input-group input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.1);
    background: #1e3c72;
}

.emi-input-group input[type="range"]::-ms-thumb {
    width: 22px;
    height: 22px;
    background: #2a5298;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.emi-calc-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.emi-calc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30,60,114,0.3);
}

.emi-calc-btn:active {
    transform: translateY(0);
}

.emi-result {
    margin-top: 35px;
    display: none;
}

.emi-result.show {
    display: block;
    animation: fadeInUp 0.5s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.emi-main-result {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    color: white;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(102,126,234,0.3);
}

.emi-main-result h3 {
    font-size: 16px;
    margin-bottom: 10px;
    opacity: 0.95;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.emi-amount {
    font-size: 48px;
    font-weight: 800;
    margin: 10px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.emi-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.emi-detail-card {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #2a5298;
    text-align: center;
}

.emi-detail-card h4 {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.emi-detail-card p {
    font-size: 24px;
    font-weight: 700;
    color: #1e3c72;
    margin: 0;
}

.emi-breakdown {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    margin-top: 25px;
}

.emi-breakdown h3 {
    font-size: 20px;
    color: #1e3c72;
    margin-bottom: 20px;
    font-weight: 700;
}

.emi-breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.emi-breakdown-item:last-child {
    border-bottom: none;
}

.emi-breakdown-label {
    font-weight: 600;
    color: #555;
    font-size: 15px;
}

.emi-breakdown-value {
    font-weight: 700;
    color: #1e3c72;
    font-size: 18px;
}

.emi-chart-container {
    margin-top: 25px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
}

.emi-chart-container h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e3c72;
    margin-bottom: 15px;
}

.emi-chart {
    display: flex;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.emi-chart-principal {
    background: #2a5298;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s;
}

.emi-chart-interest {
    background: #f093fb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s;
}

/* ====================================
   Responsive Design
   ==================================== */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    .tool-header h1 {
        font-size: 32px;
    }
    
    .tool-subtitle {
        font-size: 16px;
    }
    
    .tool-icon-large {
        font-size: 52px;
    }
    
    .tool-meta {
        font-size: 14px;
        gap: 10px;
    }
    
    .emi-calc-header h2 {
        font-size: 28px;
    }
    
    .emi-calc-body {
        padding: 30px 20px;
    }
    
    .emi-amount {
        font-size: 36px;
    }
    
    .emi-details-grid {
        grid-template-columns: 1fr;
    }
    
    .emi-input-group input[type="number"] {
        font-size: 16px;
        padding: 12px 16px;
    }
    
    .emi-breakdown {
        padding: 20px;
    }
    
    .emi-breakdown-label,
    .emi-breakdown-value {
        font-size: 14px;
    }
    
    .content-article h2 {
        font-size: 26px;
    }
    
    .content-article h3 {
        font-size: 20px;
    }
    
    .related-tools-grid {
        grid-template-columns: 1fr;
    }
    
    .related-tools {
        padding: 30px 20px;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .breadcrumb {
        font-size: 12px;
        padding: 15px 0;
    }
    
    .tool-header {
        padding: 40px 15px;
    }
    
    .tool-header h1 {
        font-size: 26px;
    }
    
    .tool-subtitle {
        font-size: 14px;
    }
    
    .tool-icon-large {
        font-size: 48px;
    }
    
    .tool-content {
        padding: 40px 15px;
    }
    
    .emi-calc-container {
        border-radius: 15px;
    }
    
    .emi-calc-header {
        padding: 30px 20px;
    }
    
    .emi-calc-header h2 {
        font-size: 24px;
    }
    
    .emi-calc-header p {
        font-size: 14px;
    }
    
    .emi-calc-body {
        padding: 25px 15px;
    }
    
    .emi-input-section {
        gap: 20px;
    }
    
    .emi-input-group label {
        font-size: 14px;
    }
    
    .emi-input-group input[type="number"] {
        font-size: 15px;
        padding: 12px 14px;
    }
    
    .emi-calc-btn {
        font-size: 16px;
        padding: 15px;
    }
    
    .emi-amount {
        font-size: 32px;
    }
    
    .emi-detail-card p {
        font-size: 20px;
    }
    
    .emi-chart {
        height: 35px;
        font-size: 11px;
    }
    
    .emi-breakdown {
        padding: 15px;
    }
    
    .emi-breakdown h3 {
        font-size: 18px;
    }
    
    .emi-breakdown-label {
        font-size: 13px;
    }
    
    .emi-breakdown-value {
        font-size: 16px;
    }
    
    .seo-content {
        padding: 60px 15px;
    }
    
    .content-article h2 {
        font-size: 22px;
        margin-top: 35px;
    }
    
    .content-article h3 {
        font-size: 18px;
        margin-top: 25px;
    }
    
    .content-article p,
    .content-article li {
        font-size: 15px;
    }
    
    .related-tools {
        padding: 25px 15px;
    }
    
    .related-tools h3 {
        font-size: 22px;
    }
    
    .related-tool-card {
        padding: 20px;
    }
    
    .related-tool-card .tool-icon {
        font-size: 36px;
    }
}

/* Small Mobile (360px and below) */
@media (max-width: 360px) {
    .tool-header h1 {
        font-size: 22px;
    }
    
    .emi-calc-header h2 {
        font-size: 20px;
    }
    
    .emi-amount {
        font-size: 28px;
    }
    
    .emi-detail-card p {
        font-size: 18px;
    }
}