/**
 * Tool Page Styles - Modern, Beautiful Design
 * Matches NoCodeVista theme with gradients, animations, glassmorphism
 */

/* ====================  PAGE STRUCTURE  ==================== */
.tool-page {
    padding-top: 0;
    background: #FFFFFF;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.section-badge i {
    font-size: 18px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* ====================  HERO SECTION  ==================== */
.tool-hero-section {
    position: relative;
    padding: 80px 0 50px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F9FAFB 100%);
    text-align: center;
    overflow: hidden;
}

/* Gradient balls removed to prevent horizontal overflow on all devices */

/* Animation removed to prevent horizontal overflow on mobile devices */
/* @keyframes heroFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(5deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }
} */

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

.tool-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 50px;
    margin-bottom: 20px;
    box-shadow: 0 4px 24px rgba(99, 102, 241, 0.1);
    /* animation: glow-pulse 2s ease-in-out infinite; */
}

@keyframes glow-pulse {

    0%,
    100% {
        box-shadow: 0 4px 24px rgba(99, 102, 241, 0.1);
    }

    50% {
        box-shadow: 0 4px 32px rgba(99, 102, 241, 0.2);
    }
}

.tool-badge-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-badge-icon i {
    font-size: 20px;
}

.tool-badge span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: capitalize;
}

.tool-hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.4;
    margin-bottom: 20px;
    color: var(--text-primary);
    background: linear-gradient(135deg, #0F172A 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tool-hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--text-secondary);
    max-width: 750px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.tool-hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.tool-page .btn-primary,
.tool-page .btn-secondary,
.tool-page .btn-outline {
    position: relative;
    padding: 14px 28px;
    font-size: 1.0625rem;
    font-weight: 600;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    cursor: pointer;
    border: none;
    overflow: hidden;
}

.tool-page .btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.tool-page .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.tool-page .btn-secondary {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border: 2px solid rgba(99, 102, 241, 0.3);
}

.tool-page .btn-secondary:hover {
    background: rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

.tool-page .btn-outline {
    background: white;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.tool-page .btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.tool-page .btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
    pointer-events: none;
}

.tool-page .btn-primary:hover .btn-glow {
    transform: translate(-50%, -50%) scale(2);
}

.tool-hero-badges {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 116, 139, 0.1);
    border-radius: 50px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.trust-badge-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-badge-icon i {
    font-size: 20px;
    color: var(--success-color);
}

/* ====================  COMING SOON  ==================== */
.tool-interface-section {
    padding: 60px 0;
    background: white;
}

.coming-soon-interface {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 50px 40px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.08);
    position: relative;
    overflow: hidden;
}

.coming-soon-interface::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.03) 0%, transparent 70%);
    /* animation: rotateGradient 15s linear infinite; */
}

@keyframes rotateGradient {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.coming-soon-interface>* {
    position: relative;
    z-index: 1;
}

.coming-soon-icon-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 28px;
}

.icon-glow-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    border: 3px solid rgba(99, 102, 241, 0.2);
    border-radius: 50%;
    /* animation: ringPulse 2s ease-in-out infinite; */
}

@keyframes ringPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.2;
    }
}

.coming-soon-icon {
    position: relative;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.15);
    /* animation: iconFloat 3s ease-in-out infinite; */
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.coming-soon-icon i {
    font-size: 56px;
}

.coming-soon-content {
    max-width: 500px;
    margin: 0 auto;
}

.coming-soon-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.coming-soon-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.highlight-text {
    color: var(--primary-color);
    font-weight: 600;
}

.notify-form {
    margin-bottom: 24px;
}

.form-wrapper {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 20px;
    font-size: 20px;
    color: var(--text-light);
}

.input-wrapper input {
    width: 100%;
    padding: 16px 20px 16px 52px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
    background: white;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.btn-notify {
    position: relative;
    padding: 16px 32px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.btn-notify:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.form-privacy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-light);
}

.form-privacy i {
    color: var(--success-color);
}

.coming-soon-features {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--success-color);
}

.feature-pill i {
    font-size: 16px;
}

/* ====================  SECTIONS  ==================== */
.tool-info-section {
    padding: 60px 0;
    background: #F9FAFB;
}

.tool-info-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.tool-info-content {
    background: white;
    padding: 36px;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.info-paragraph {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.info-paragraph:last-child {
    margin-bottom: 0;
}

.tool-features-section {
    padding: 60px 0;
    background: white;
}

.tool-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    background: white;
    padding: 32px;
    border-radius: 20px;
    border: 1px solid rgba(100, 116, 139, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.2);
}

.feature-icon-wrapper {
    margin-bottom: 20px;
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: var(--primary-gradient);
    transform: scale(1.1);
}

.feature-icon i {
    font-size: 28px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon i {
    color: white;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.how-it-works-section {
    padding: 60px 0;
    background: #F9FAFB;
}

.how-it-works-steps {
    max-width: 900px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    align-items: flex-start;
}

.step-item:last-child {
    margin-bottom: 0;
}

.step-number-wrapper {
    position: relative;
    flex-shrink: 0;
}

.step-connector {
    position: absolute;
    top: 60px;
    left: 50%;
    width: 2px;
    height: calc(100% + 40px);
    background: linear-gradient(180deg, var(--primary-color) 0%, rgba(99, 102, 241, 0.2) 100%);
    transform: translateX(-50%);
}

.step-item:last-child .step-connector {
    display: none;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
    z-index: 1;
    position: relative;
}

.step-card {
    flex: 1;
    background: white;
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.12);
}

.step-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.step-icon i {
    font-size: 22px;
    color: var(--primary-color);
}

.step-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.step-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.why-choose-section {
    padding: 60px 0;
    background: white;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.reason-card {
    text-align: center;
    background: white;
    padding: 32px 24px;
    border-radius: 20px;
    border: 1px solid rgba(100, 116, 139, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.reason-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
}

.reason-icon-wrapper {
    margin-bottom: 20px;
}

.reason-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.25);
    transition: all 0.3s ease;
}

.reason-card:hover .reason-icon {
    transform: scale(1.1) rotate(5deg);
}

.reason-icon i {
    font-size: 32px;
    color: white;
}

.reason-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.reason-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.use-cases-section {
    padding: 100px 0;
    background: #F9FAFB;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.use-case-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 24px;
    border-radius: 16px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.use-case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.use-case-card:hover::before {
    width: 100%;
    opacity: 0.05;
}

.use-case-card:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.12);
}

.use-case-icon-wrapper {
    flex-shrink: 0;
}

.use-case-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.use-case-icon i {
    font-size: 28px;
    color: var(--primary-color);
}

.use-case-content {
    flex: 1;
}

.use-case-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.use-case-description {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.use-case-arrow {
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.use-case-card:hover .use-case-arrow {
    opacity: 1;
    transform: translateX(0);
}

.use-case-arrow i {
    font-size: 24px;
    color: var(--primary-color);
}

.related-tools-section {
    padding: 60px 0;
    background: white;
}

.related-tools-section .tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* Compact styling for related tools cards */
.related-tools-section .tool-card-v2 {
    padding: 20px;
    aspect-ratio: auto;
}

.related-tools-section .tool-icon-wrapper {
    width: 48px;
    height: 48px;
}

.related-tools-section .tool-icon-wrapper i {
    font-size: 24px;
}

.related-tools-section .tool-card-header h3 {
    font-size: 18px;
}

.related-tools-section .tool-card-body p {
    font-size: 15px;
    line-height: 1.4;
}

.related-tools-section .section-footer {
    text-align: center;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.0625rem;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

/* ====================  ANIMATIONS  ==================== */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stagger-item {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.shine-hover {
    position: relative;
    overflow: hidden;
}

.shine-hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    transition: left 0.7s ease;
}

.shine-hover:hover::after {
    left: 150%;
}

/* ====================  RESPONSIVE  ==================== */
@media (max-width: 768px) {
    .tool-hero-section {
        padding: 60px 0 40px;
    }

    .tool-hero-title {
        font-size: 2.5rem;
    }

    .tool-hero-cta {
        flex-direction: column;
    }

    .tool-hero-badges {
        flex-direction: column;
        align-items: center;
    }

    .coming-soon-interface {
        padding: 40px 24px;
    }

    .form-wrapper {
        flex-direction: column;
    }

    .tool-features-grid,
    .why-choose-grid,
    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .step-item {
        flex-direction: column;
        gap: 20px;
    }

    .step-connector {
        display: none;
    }

    .tool-info-content {
        padding: 24px 20px;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .tool-hero-section {
        padding: 74px 0 40px;
    }

    .tool-page .btn-primary,
    .tool-page .btn-secondary,
    .tool-page .btn-outline {
        width: 100%;
        justify-content: center;
    }

    .feature-card,
    .reason-card,
    .step-card {
        padding: 24px 20px;
    }

    .coming-soon-icon-wrapper {
        width: 100px;
        height: 100px;
    }

    .coming-soon-icon i {
        font-size: 48px;
    }

    .use-case-card {
        flex-direction: column;
        text-align: center;
    }
}