/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.25rem;
}

.logo-text p {
    font-size: 0.875rem;
    color: #666;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav a:hover,
.nav a.active {
    color: #667eea;
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #667eea;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 2rem 0;
    text-align: center;
}

.hero-content {
    margin-top: 2rem;
}

.hero-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.125rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Ad Styles */
.ad-banner-top {
    margin-bottom: 2rem;
    text-align: center;
}

.ad-sidebar {
    margin-bottom: 2rem;
}

.ad-in-content {
    margin: 2rem 0;
    text-align: center;
}

.ad-bottom {
    margin: 2rem 0;
    text-align: center;
}

.ads-container {
    margin: 1rem 0;
    text-align: center;
}

.ads-468 {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    display: inline-block;
}

.ads-300 {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    display: inline-block;
}

.ads-160 {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    display: inline-block;
}

/* Converter Section */
.converter-section {
    padding: 3rem 0;
}

.converter-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.converter-main {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.converter-card {
    text-align: center;
}

.converter-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 2rem;
}

.amount-input {
    margin-bottom: 2rem;
}

.amount-input label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
}

.amount-input input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1.125rem;
    transition: border-color 0.3s ease;
}

.amount-input input:focus {
    outline: none;
    border-color: #667eea;
}

.currency-selectors {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: end;
    margin-bottom: 2rem;
}

.currency-selector label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
}

.currency-selector select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.currency-selector select:focus {
    outline: none;
    border-color: #667eea;
}

.swap-button {
    display: flex;
    align-items: center;
    justify-content: center;
}

.swap-button button {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.swap-button button:hover {
    background: #5a67d8;
    transform: rotate(180deg);
}

.convert-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.convert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(102, 126, 234, 0.4);
}

.result {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
    text-align: center;
}

.result-amount {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.result-info p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #667eea;
}

.loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Sidebar Styles */
.sidebar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.currency-info h3,
.exchange-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.currency-info ul,
.exchange-info ul {
    list-style: none;
}

.currency-info li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.currency-info li:last-child {
    border-bottom: none;
}

.flag {
    font-size: 1.25rem;
}

.exchange-info li {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.exchange-info li:last-child {
    border-bottom: none;
}

.exchange-info i {
    color: #667eea;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Footer Styles */
.footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #667eea;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #667eea;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(102, 126, 234, 0.2);
    border-radius: 50%;
    color: #667eea;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #667eea;
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
}

/* Bottom Ads */
.bottom-ads {
    padding: 2rem 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .converter-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .sidebar {
        order: 2;
    }
    
    .converter-main {
        order: 1;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
    
    .hero-text h2 {
        font-size: 2rem;
    }
    
    .currency-selectors {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .swap-button {
        order: -1;
    }
    
    .swap-button button {
        margin-bottom: 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo-text h1 {
        font-size: 1.25rem;
    }
    
    .hero-text h2 {
        font-size: 1.75rem;
    }
    
    .converter-main {
        padding: 1.5rem;
    }
    
    .convert-btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .result-amount {
        font-size: 1.5rem;
    }
}

/* Mobile-only Ad Display */
.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
    
    .desktop-only {
        display: none;
    }
    
    .ads-468 {
        width: 100%;
        max-width: 320px;
    }
    
    .ads-300 {
        width: 100%;
        max-width: 300px;
    }
    
    .ads-160 {
        width: 100%;
        max-width: 300px;
    }
}

/* Ad Container Responsive Styles */
.ads-responsive {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.ads-rectangle-responsive {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.ads-vertical-responsive {
    width: 100%;
    max-width: 160px;
    margin: 0 auto;
}

/* Smooth Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.converter-card,
.feature-card,
.sidebar {
    animation: fadeIn 0.6s ease-out;
}

/* Loading Spinner Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading i {
    animation: spin 1s linear infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.7);
}

/* Focus States for Accessibility */
button:focus,
input:focus,
select:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Page Header Styles */
.page-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    padding: 3rem 0;
    text-align: center;
}

.page-header-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.page-header-content p {
    font-size: 1.125rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Top Ad Section */
.top-ad-section {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Content Grid Layout */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
}

/* Main Content Styles */
.main-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.content-card {
    max-width: none;
}

.content-card h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
    margin: 2rem 0 1rem 0;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

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

.content-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin: 1.5rem 0 1rem 0;
}

.content-card p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #555;
}

.content-card ul {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.content-card li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #555;
}

.content-card a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.content-card a:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* Last Updated Badge */
.last-updated {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.last-updated i {
    font-size: 1rem;
}

/* Currency Grid */
.currency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.currency-category {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
}

.currency-category h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 1rem;
    text-align: center;
}

.currency-category ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.currency-category li {
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    font-size: 0.875rem;
}

.currency-category li:last-child {
    border-bottom: none;
}

/* Features List */
.features-list {
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateX(5px);
    background: rgba(102, 126, 234, 0.1);
}

.feature-item i {
    font-size: 1.5rem;
    color: #667eea;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.feature-item p {
    margin-bottom: 0;
    color: #666;
}

/* FAQ Section */
.faq-section {
    margin: 2rem 0;
}

.faq-item {
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid #667eea;
}

.faq-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
}

.faq-item p {
    margin-bottom: 0;
    color: #666;
}

/* Contact Form Styles */
.contact-form {
    margin: 2rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(102, 126, 234, 0.4);
}

/* Success and Error Messages */
.success-message,
.error-message {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.success-message {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.error-message {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
}

.success-message i,
.error-message i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.error-message ul {
    margin-bottom: 0;
    padding-left: 1rem;
}

.error-message li {
    margin-bottom: 0.25rem;
}

/* Contact Info Styles */
.contact-info {
    margin-top: 1rem;
}

.contact-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.contact-item i {
    font-size: 1.25rem;
    color: #667eea;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.contact-item p {
    margin-bottom: 0;
    color: #666;
}

/* Policy Navigation */
.policy-nav,
.terms-nav {
    list-style: none;
    padding-left: 0;
}

.policy-nav li,
.terms-nav li {
    margin-bottom: 0.5rem;
}

.policy-nav a,
.terms-nav a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.policy-nav a:hover,
.terms-nav a:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* Policy Summary */
.policy-summary,
.terms-summary {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.policy-summary h3,
.terms-summary h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
}

.policy-summary ul,
.terms-summary ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.policy-summary li,
.terms-summary li {
    padding: 0.5rem 0;
    font-weight: 500;
    color: #555;
}

/* Additional Page Specific Styles */
.about-content,
.contact-content,
.privacy-content,
.terms-content {
    padding: 3rem 0;
}

/* Responsive Design for Additional Pages */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .sidebar {
        order: 2;
    }
    
    .main-content {
        order: 1;
    }
}

@media (max-width: 768px) {
    .page-header-content h2 {
        font-size: 2rem;
    }
    
    .currency-grid {
        grid-template-columns: 1fr;
    }
    
    .content-card {
        padding: 1.5rem;
    }
    
    .content-card h2 {
        font-size: 1.5rem;
    }
    
    .features-list {
        margin: 1.5rem 0;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .feature-item i {
        font-size: 2rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 2rem 0;
    }
    
    .page-header-content h2 {
        font-size: 1.75rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .content-card {
        padding: 1rem;
    }
    
    .content-card h2 {
        font-size: 1.25rem;
    }
    
    .content-card h3 {
        font-size: 1.125rem;
    }
    
    .policy-summary,
    .terms-summary {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .nav,
    .ads-container,
    .footer,
    .mobile-menu-toggle,
    .last-updated,
    .sidebar {
        display: none;
    }
    
    body {
        background: white;
    }
    
    .main-content {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .content-card {
        box-shadow: none;
        border: none;
    }
    
    .page-header {
        background: white;
        color: black;
    }
    
    .page-header-content h2 {
        color: black;
    }
    
    .page-header-content p {
        color: #666;
    }
}