/* ==================== */
/* Online Tools Page Styles */
/* ==================== */

.online-tools-page {
    background: var(--background);
}

/* Hero Section */
.online-tools-hero {
    position: relative;
    padding: 140px 0 80px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(180deg, var(--background-alt) 0%, var(--background) 100%);
}

.hero-content-centered {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.online-tools-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 40px;
}

.hero-subtitle strong {
    color: var(--primary);
    font-weight: 600;
}

.hero-stats-inline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: var(--border);
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(244, 114, 182, 0.08) 0%, transparent 50%);
    z-index: 0;
}

/* Tools Categories Section */
.tools-categories-section {
    padding: 60px 0 100px;
}

.tool-category {
    margin-bottom: 80px;
}

.tool-category:last-child {
    margin-bottom: 0;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.category-icon.edit-icon {
    background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
    color: white;
}

.category-icon.organize-icon {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: white;
}

.category-icon.convert-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: white;
}

.category-icon.security-icon {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    color: white;
}

.category-icon.view-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    color: white;
}

.category-info h2 {
    font-size: 1.75rem;
    margin-bottom: 4px;
    color: var(--text);
}

.category-info p {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Tools Grid */
.tools-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Tool Card */
.tool-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px 24px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-card-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    line-height: 1;
}

.tool-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.tool-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    flex-grow: 1;
}

.tool-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 10px;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tool-card-badge.soon {
    background: var(--text-muted);
}

/* Coming Soon Card Styles */
.tool-card.coming-soon {
    cursor: default;
    opacity: 0.7;
}

.tool-card.coming-soon:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border);
}

.tool-card.coming-soon::before {
    display: none;
}

.tool-card.coming-soon .tool-card-icon {
    filter: grayscale(50%);
}

/* Features Section */
.online-tools-features {
    padding: 100px 0;
    background: var(--background-alt);
}

.online-tools-features .section-header {
    margin-bottom: 60px;
}

.online-tools-features .section-header h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.online-tools-features .section-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

.features-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-item {
    text-align: center;
    padding: 32px 24px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon-box {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--background-alt);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.feature-item h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Quick Jump Navigation (Optional - for sticky nav) */
.tools-quick-nav {
    position: sticky;
    top: 72px;
    background: white;
    border-bottom: 1px solid var(--border);
    z-index: 100;
    padding: 16px 0;
    margin-bottom: 40px;
}

.quick-nav-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.quick-nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.quick-nav-links a:hover {
    color: var(--primary);
    background: var(--background-alt);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .tools-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .tools-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .online-tools-hero {
        padding: 120px 0 60px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats-inline {
        gap: 24px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-divider {
        display: none;
    }
    
    .category-header {
        flex-direction: column;
        text-align: center;
    }
    
    .category-icon {
        width: 56px;
        height: 56px;
    }
    
    .category-info h2 {
        font-size: 1.5rem;
    }
    
    .tools-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .tool-card {
        padding: 20px 18px;
    }
    
    .tool-card-icon {
        font-size: 2rem;
        margin-bottom: 12px;
    }
    
    .tool-card h3 {
        font-size: 1rem;
    }
    
    .tool-card p {
        font-size: 0.85rem;
    }
    
    .features-grid-3 {
        grid-template-columns: 1fr;
    }
    
    .tool-category {
        margin-bottom: 60px;
    }
}

@media (max-width: 480px) {
    .online-tools-hero {
        padding: 100px 0 40px;
    }
    
    .online-tools-hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats-inline {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-item {
        flex-direction: row;
        gap: 12px;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .tools-categories-section {
        padding: 40px 0 60px;
    }
    
    .tools-grid-4 {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .tool-card {
        flex-direction: row;
        align-items: center;
        gap: 16px;
        padding: 18px 16px;
    }
    
    .tool-card-icon {
        font-size: 1.75rem;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .tool-card-content {
        flex: 1;
    }
    
    .tool-card h3 {
        font-size: 0.95rem;
        margin-bottom: 4px;
    }
    
    .tool-card p {
        font-size: 0.8rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .tool-card-badge {
        position: static;
        margin-top: 8px;
        display: inline-block;
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
    }
    
    .category-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .category-info h2 {
        font-size: 1.35rem;
    }
    
    .category-info p {
        font-size: 0.9rem;
    }
    
    .tool-category {
        margin-bottom: 50px;
    }
    
    .online-tools-features {
        padding: 60px 0;
    }
    
    .online-tools-features .section-header h2 {
        font-size: 1.5rem;
    }
    
    .feature-item {
        padding: 24px 20px;
    }
    
    .feature-icon-box {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }
    
    .feature-item h3 {
        font-size: 1.1rem;
    }
}

/* Hover effect for category sections */
.tool-category:hover .category-icon {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Animation for tool cards entrance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tool-card {
    animation: fadeInUp 0.5s ease forwards;
}

.tools-grid-4 .tool-card:nth-child(1) { animation-delay: 0.05s; }
.tools-grid-4 .tool-card:nth-child(2) { animation-delay: 0.1s; }
.tools-grid-4 .tool-card:nth-child(3) { animation-delay: 0.15s; }
.tools-grid-4 .tool-card:nth-child(4) { animation-delay: 0.2s; }
.tools-grid-4 .tool-card:nth-child(5) { animation-delay: 0.25s; }
.tools-grid-4 .tool-card:nth-child(6) { animation-delay: 0.3s; }
.tools-grid-4 .tool-card:nth-child(7) { animation-delay: 0.35s; }
.tools-grid-4 .tool-card:nth-child(8) { animation-delay: 0.4s; }
.tools-grid-4 .tool-card:nth-child(9) { animation-delay: 0.45s; }
.tools-grid-4 .tool-card:nth-child(10) { animation-delay: 0.5s; }

/* Tool card color variants on hover based on category */
.tool-category#edit .tool-card:hover {
    border-color: #6366f1;
}

.tool-category#organize .tool-card:hover {
    border-color: #10b981;
}

.tool-category#convert .tool-card:hover {
    border-color: #f59e0b;
}

.tool-category#security .tool-card:hover {
    border-color: #ef4444;
}

.tool-category#view .tool-card:hover {
    border-color: #8b5cf6;
}

/* Scroll smooth for anchor links */
html {
    scroll-padding-top: 100px;
}
