/* Tool Page Common Styles */
.tool-page {
    padding-top: 0;
}

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

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

.breadcrumb a:hover {
    color: #4facfe;
}

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

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

/* Tool Header */
.tool-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.tool-header-content {
    max-width: 800px;
    margin: 0 auto;
}

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

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

.tool-header h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1.2;
}

.tool-subtitle {
    font-size: 20px;
    opacity: 0.95;
    margin-bottom: 25px;
    line-height: 1.6;
}

.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;
}

/* Currency Converter Specific Styles */
.currency-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0;
    background: #ffffff;
    border-radius: 25px;
    box-shadow: 0 15px 60px rgba(0,0,0,0.12);
    overflow: hidden;
}

.currency-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    padding: 40px 30px;
    text-align: center;
    color: white;
}

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

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

.currency-converter {
    padding: 40px 30px;
}

.currency-input-group {
    margin-bottom: 25px;
}

.currency-input-group label {
    display: block;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.currency-input-wrapper {
    display: flex;
    gap: 12px;
}

.currency-input-wrapper input {
    flex: 2;
    padding: 16px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
    font-family: inherit;
}

.currency-input-wrapper input:focus {
    outline: none;
    border-color: #4facfe;
    box-shadow: 0 0 0 4px rgba(79, 172, 254, 0.1);
}

.currency-input-wrapper input[readonly] {
    background: #f8f9fa;
    cursor: not-allowed;
}

.currency-input-wrapper select {
    flex: 1.2;
    padding: 16px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    background: white;
    transition: all 0.3s ease;
    font-family: inherit;
}

.currency-input-wrapper select:focus {
    outline: none;
    border-color: #4facfe;
    box-shadow: 0 0 0 4px rgba(79, 172, 254, 0.1);
}

.currency-swap {
    text-align: center;
    margin: 25px 0;
}

.currency-swap-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    font-size: 26px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.currency-swap-btn:hover {
    transform: rotate(180deg) scale(1.05);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
}

.currency-swap-btn:active {
    transform: rotate(180deg) scale(0.95);
}

.currency-result {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px 25px;
    border-radius: 15px;
    text-align: center;
    margin-top: 30px;
    border: 2px solid #e0e0e0;
}

.currency-result h3 {
    color: #4facfe;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    word-wrap: break-word;
}

.currency-rate-info {
    color: #666;
    font-size: 14px;
    margin-top: 10px;
    font-weight: 600;
}

.currency-update-time {
    color: #999;
    font-size: 12px;
    margin-top: 10px;
    font-style: italic;
}

.currency-popular {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.currency-popular h4 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.currency-popular-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.currency-popular-btn {
    padding: 12px 10px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    color: #333;
    transition: all 0.3s ease;
    text-align: center;
}

.currency-popular-btn:hover {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.3);
}

/* 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: #333;
}

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

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

.content-article p {
    margin-bottom: 20px;
    color: #666;
    font-size: 16px;
}

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

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

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

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

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

.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 25px rgba(0,0,0,0.1);
    border-color: #4facfe;
}

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

.related-tool-card .tool-name {
    font-weight: 700;
    color: #333;
    font-size: 16px;
}

/* Animation for result display */
@keyframes resultFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.currency-result.updated {
    animation: resultFadeIn 0.3s ease;
}

/* Responsive Design */
@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;
    }
    
    .currency-container {
        margin: 20px;
        border-radius: 20px;
    }
    
    .currency-header {
        padding: 30px 20px;
    }
    
    .currency-header h2 {
        font-size: 28px;
    }
    
    .currency-converter {
        padding: 30px 20px;
    }
    
    .currency-input-wrapper {
        flex-direction: column;
        gap: 10px;
    }
    
    .currency-input-wrapper input,
    .currency-input-wrapper select {
        flex: 1;
        width: 100%;
    }
    
    .currency-swap-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .currency-result h3 {
        font-size: 18px;
    }
    
    .currency-popular-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-article h2 {
        font-size: 26px;
    }
    
    .content-article h3 {
        font-size: 20px;
    }
    
    .related-tools-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .currency-header h2 {
        font-size: 24px;
    }
    
    .currency-header p {
        font-size: 14px;
    }
    
    .currency-input-wrapper input {
        font-size: 16px;
        padding: 14px 16px;
    }
    
    .currency-input-wrapper select {
        font-size: 14px;
        padding: 14px 12px;
    }
    
    .currency-result {
        padding: 25px 20px;
    }
    
    .currency-result h3 {
        font-size: 16px;
    }
    
    .currency-popular-grid {
        grid-template-columns: 1fr;
    }
    
    .currency-popular-btn {
        padding: 14px 12px;
    }
}

/* Print Styles */
@media print {
    .currency-swap,
    .currency-popular {
        display: none;
    }
    
    .currency-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}