/* ============================================
   YKR Agency — Unified Tool Inner Page Styles
   Single source of truth for the Obsidian Design
   ============================================ */



/* --- Layout & Sections --- */
.tool-page-section {
    background: #fff;
    padding: 0 0 100px;
}

.gallery-item {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.gallery-item:hover {
    border-color: #ff481f;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.image-frame {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.image-frame img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* --- Banner --- */
.inner-banner-tool-detail,
.inner-banner-tools {
    background: #0D1A1C;
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 50px 50px;
}

.inner-banner-tool-detail::before,
.inner-banner-tools::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 72, 31, 0.15) 0%, transparent 70%) !important;
    z-index: 1 !important;
    pointer-events: none;
}

.inner-banner-tool-detail .container,
.inner-banner-tools .container {
    position: relative;
    z-index: 5;
}

/* --- Banner Typography --- */
.title-one {
    position: relative;
    z-index: 5;
}

.title-one h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 64px;
    font-weight: 700;
    line-height: 1.2;
    color: #FDFDFD;
}

.title-one h2 span {
    color: #ff481f;
}

.title-one p {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* --- Tool Container --- */
.tool-container {
    max-width: 1000px;
    margin: -60px auto 100px;
    position: relative;
    z-index: 2;
}

/* --- Main Card with Static Logo Color Border --- */
.main-card {
    background: #0D1A1C;
    border-radius: 30px;
    padding: 1px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    z-index: 1;
    border: 1px solid rgba(255, 72, 31, 0.5);
    display: flex;
    flex-direction: column;
}

/* --- Card Inner (White Content Area) --- */
.main-card-inner {
    position: relative;
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    z-index: 2;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* --- Dark Input Section Inside Card --- */
.input-section-pro {
    background: #0D1A1C;
    padding: 80px 60px;
    color: #fff;
    position: relative;
}

.input-section-pro::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 72, 31, 0.3), transparent);
}

/* --- Section Wrapper --- */
.tool-page-section {
    background: #fff;
    padding: 0 0 100px;
}

/* --- Unified Input Bar --- */
.unified-input-bar {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 8px 8px 8px 30px;
    display: flex;
    align-items: center;
    backdrop-filter: blur(10px);
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 900px;
    margin: 0 auto;
}

.unified-input-bar:focus-within {
    background: rgba(255, 255, 255, 0.08);
    border-color: #ff481f;
    box-shadow: 0 0 40px rgba(255, 72, 31, 0.25);
    transform: scale(1.02);
}

.unified-input-bar:focus-within input {
    color: #fff;
}

.unified-input-bar input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    width: 100%;
    padding: 12px 0;
}

.unified-input-bar input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}


.unified-input-bar i {
    color: rgba(255, 255, 255, 1);
    font-size: 20px;
}

/* --- Analyze Button --- */
.btn-analyze-pro {
    background: #ff481f;
    color: #fff;
    border: none;
    border-radius: 100px;
    padding: 16px 35px;
    font-weight: 800;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    white-space: nowrap;
    box-shadow: 0 10px 20px rgba(255, 72, 31, 0.2);
}

.btn-analyze-pro:hover {
    background: #fff;
    color: #ff481f;
    transform: translateX(3px);
}

/* --- Back to Tools Button --- */
.btn-back-tools {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
    line-height: 45px;
    height: 45px;
    padding: 0 30px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.3s;
}

.btn-back-tools:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

section.tool-page-section {
    padding: 0;
}

/* --- Business Type Pill (for tools with dropdowns) --- */
.biz-type-pill {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 10px 20px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-width: 220px;
}

.biz-type-pill select {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.biz-type-pill select option {
    background: #0D1A1C;
    color: #fff;
}

/* --- Upload & Processing UI --- */
.upload-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    background: #f8fafc;
    margin-bottom: 30px;
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: #ff481f;
    background: #fff5f3;
}

.upload-zone i {
    font-size: 50px;
    color: #ff481f !important;
    margin-bottom: 20px;
}

.upload-zone h3 {
    font-size: 24px;
    font-weight: 800;
    color: #0D1A1C;
    margin-bottom: 10px;
}

.loader-container {
    width: 100%;
    height: 8px;
    background: #f1f5f9;
    border-radius: 100px;
    overflow: hidden;
    margin: 20px 0;
}

.loader-bar {
    height: 100%;
    width: 0%;
    transition: 0.4s;
}

.scanner-box {
    width: 100%;
    height: 300px;
    background: #f8fafc;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ff481f;
    box-shadow: 0 0 15px #ff481f;
    animation: scan 2s linear infinite;
}

@keyframes scan {
    0% {
        top: 0;
    }

    100% {
        top: 100%;
    }
}

.pulse-glow {
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
        text-shadow: 0 0 20px rgba(255, 72, 31, 0.5);
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

.btn-download {
    background: #ff481f;
    color: #fff;
    border: none;
    border-radius: 100px;
    padding: 14px 30px;
    font-weight: 800;
    font-size: 15px;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-download:hover {
    background: #0D1A1C;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: none;
    border-radius: 100px;
    padding: 14px 30px;
    font-weight: 700;
    font-size: 15px;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* --- Results & Metrics --- */
.results-area {
    display: none;
    margin-top: 0;
    padding: 60px;
    animation: slideInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

.score-badge {
    font-size: 64px;
    font-weight: 900;
    color: #ff481f;
    line-height: 1;
}

.metric-item {
    padding: 25px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    height: 100%;
    transition: 0.3s;
}

.metric-item:hover {
    background: #fff;
    border-color: #ff481f;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
}

.metric-item i {
    font-size: 24px;
    color: #ff481f;
    margin-bottom: 20px;
}

/* --- SEO Content --- */
.seo-content {
    padding: 0;
    background: #fff;
}

.seo-card {
    border: none;
    border-radius: 20px;
    background: #f9fafb;
    padding: 40px;
    margin-bottom: 30px;
}

.seo-card h2 {
    font-weight: 800;
    font-size: 32px;
    margin-bottom: 25px;
    color: #0D1A1C;
}

.seo-card p,
.seo-card li {
    font-size: 18px;
    color: #4b5563;
    line-height: 1.8;
}

/* --- Utility --- */
.hover-white {
    cursor: pointer;
    transition: 0.3s;
}

.hover-white:hover {
    color: #fff !important;
    opacity: 1;
}

.hover-dark:hover {
    color: #0D1A1C !important;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.action-plan {
    padding: 45px;
}

/* --- Responsive Utility --- */
.p-50 {
    padding: 50px;
}

.p-60 {
    padding: 60px;
}

.px-60 {
    padding-left: 60px;
    padding-right: 60px;
}

@media (max-width: 768px) {
    .p-50 {
        padding: 30px 20px;
    }

    .p-60 {
        padding: 30px 20px;
    }

    .px-60 {
        padding-left: 20px;
        padding-right: 20px;
    }

    .input-section-pro {
        padding: 40px 20px;
    }

    .results-area {
        padding-left: 20px;
        padding-right: 20px;
    }

    .tool-container {
        margin-left: 15px;
        margin-right: 15px;
        margin-top: -30px;
    }

    .main-card {
        border-radius: 20px;
    }

    .main-card-inner {
        border-radius: 18px;
    }
}