:root {
    --primary: #4361ee;
    --primary-dark: #3a0ca3;
    --secondary: #4cc9f0;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gray: #6c757d;
    --success: #4caf50;
    --danger: #f44336;
    --warning: #ff9800;
    --border-radius: 12px;
    --shadow: 0 5px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 25px rgba(0,0,0,0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

/* Header Styles */
.header {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.navbar-brand i {
    margin-right: 8px;
}

.nav-link {
    font-weight: 500;
    color: var(--dark);
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
}

.hero-search {
    max-width: 600px;
    margin: 0 auto;
}

.hero-search .form-control {
    height: 55px;
    border-radius: 50px 0 0 50px;
    border: none;
    padding: 0 20px;
    font-size: 1rem;
}

.hero-search .btn {
    border-radius: 0 50px 50px 0;
    padding: 0 30px;
    background: var(--dark);
    border: none;
}

/* Tools Section */
.tools-section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

.tool-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    position: relative;
    height: 100%;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.tool-card.premium {
    background: linear-gradient(135deg, #fff, #fff9e6);
}

.premium-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #000;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tool-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.tool-icon i {
    font-size: 2.5rem;
    color: white;
}

.tool-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.tool-description {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.tool-card .btn {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
}

/* Features Section */
.features-section {
    background: white;
    padding: 60px 0;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--gray);
}

/* Tool Page Styles */
.tool-header-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.tool-header-section h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.tool-demo {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--light);
    border-radius: var(--border-radius);
    text-align: center;
}

.tool-demo iframe {
    width: 100%;
    min-height: 500px;
    border: none;
    border-radius: var(--border-radius);
}

.article-content {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.article-content h2 {
    color: var(--primary);
    margin: 1.5rem 0 1rem;
}

.article-content h3 {
    color: var(--dark);
    margin: 1rem 0;
}

.related-tool-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.related-tool-item:hover {
    transform: translateX(5px);
    background: var(--primary);
    color: white;
}

.related-tool-item i {
    font-size: 1.5rem;
    color: var(--primary);
}

.related-tool-item:hover i,
.related-tool-item:hover a {
    color: white;
}

.related-tool-item a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 20px;
}

.footer h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    color: white;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-search .form-control {
        height: 45px;
    }
    
    .hero-search .btn {
        padding: 0 20px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .tool-card {
        padding: 1.5rem;
    }
}
/* Tool Page Styles */
.tool-header-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.tool-icon-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.tool-icon-large i {
    font-size: 3rem;
    color: white;
}

.premium-badge-large {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700, #ffb347);
    padding: 8px 20px;
    border-radius: 50px;
    color: #000;
    font-weight: 600;
}

.free-badge {
    display: inline-block;
    background: #4caf50;
    padding: 8px 20px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
}

/* Tool Interface */
.tool-interface {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.premium-lock-box {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
}

.premium-lock-box i {
    color: #ffb347;
    margin-bottom: 20px;
}

.premium-lock-box h3 {
    margin-bottom: 10px;
}

.btn-premium {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #000;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    margin-top: 20px;
}

.external-tool-box {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
}

.external-tool-box h3 {
    margin-bottom: 15px;
}

.external-tool-box .btn {
    margin-top: 20px;
    padding: 12px 30px;
    font-size: 1.1rem;
}

.tool-iframe-container iframe {
    border-radius: 10px;
    background: white;
}

/* Article Content */
.article-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.article-content h2 {
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-content h3 {
    margin-top: 25px;
    margin-bottom: 10px;
}

.article-content p {
    line-height: 1.8;
    margin-bottom: 15px;
}

.article-content ul, 
.article-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 8px;
}

/* Tool Info Boxes */
.tool-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.info-box {
    padding: 10px;
    background: var(--light);
    border-radius: 10px;
    margin-bottom: 10px;
}

.info-box i {
    margin-right: 8px;
    color: var(--primary-color);
}

/* Related Tools Box */
.related-tools-box {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.related-tools-box h4 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.related-tool-link {
    display: flex;
    gap: 15px;
    padding: 15px;
    margin-bottom: 10px;
    background: var(--light);
    border-radius: 12px;
    text-decoration: none;
    color: var(--dark);
    transition: all 0.3s;
}

.related-tool-link:hover {
    transform: translateX(5px);
    background: var(--primary-color);
    color: white;
}

.related-tool-link i {
    font-size: 2rem;
    color: var(--primary-color);
}

.related-tool-link:hover i {
    color: white;
}

.related-tool-link p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--gray);
}

.related-tool-link:hover p {
    color: rgba(255,255,255,0.9);
}

/* Share Box */
.share-tool-box {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.share-tool-box h4 {
    margin-bottom: 20px;
}

.share-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.share-btn:hover {
    transform: translateY(-3px);
    color: white;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.email {
    background: #ea4335;
}

/* Ad Container */
.ad-container {
    text-align: center;
    background: var(--light);
    border-radius: 10px;
    padding: 10px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
    .tool-header-section {
        padding: 20px;
    }
    
    .tool-interface {
        padding: 20px;
    }
    
    .article-content {
        padding: 20px;
    }
    
    .share-buttons {
        flex-wrap: wrap;
    }
}