/* ===================================================================
   AI Utilities Hub Styles - Modern Premium Design
   =================================================================== */

/* Cloudflare Turnstile Widget */
.cf-turnstile {
    margin-top: 15px;
}

/* Animated Background */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes float {

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

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 30px rgba(199, 28, 27, 0.3);
    }

    50% {
        box-shadow: 0 0 60px rgba(199, 28, 27, 0.5);
    }
}

/* Hub Hero - Modern with Animated Gradient */
.hub-hero {
    background: linear-gradient(-45deg, #0f0f23, #1a1a3e, #2d1b4e, #1e3a5f, #0f2744);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: #fff;
    padding: 100px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Floating Orbs */
.hub-hero::before,
.hub-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 8s ease-in-out infinite;
}

.hub-hero::before {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #c71c1b, #ff6b6b);
    top: -100px;
    right: -100px;
}

.hub-hero::after {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    bottom: -50px;
    left: -50px;
    animation-delay: -4s;
}

.hub-hero-content {
    position: relative;
    z-index: 2;
}

.hub-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 28px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: pulse-glow 3s ease-in-out infinite;
}

.hub-title {
    font-size: 56px;
    font-weight: 800;
    margin: 0 0 20px;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 0%, #e0e7ff 50%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.hub-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* Glassmorphism Search */
.hub-search {
    display: flex;
    max-width: 580px;
    margin: 0 auto 28px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hub-search:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.hub-search-input {
    flex: 1;
    padding: 20px 28px;
    border: none;
    font-size: 17px;
    outline: none;
    background: transparent;
}

.hub-search-btn {
    background: linear-gradient(135deg, #c71c1b, #e74c3c);
    color: #fff;
    border: none;
    padding: 20px 32px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

.hub-search-btn:hover {
    background: linear-gradient(135deg, #a01615, #c71c1b);
    transform: scale(1.05);
}

.hub-quick-links {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.hub-quick-links a {
    color: rgba(255, 255, 255, 0.9);
    margin-left: 10px;
    padding-bottom: 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.hub-quick-links a:hover {
    color: #ff6b6b;
    border-color: #ff6b6b;
}

/* ===================================================================
   Link Safety Check - Featured CTA
   =================================================================== */
.hub-link-checker {
    padding: 60px 0;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #d1fae5 100%);
    position: relative;
    overflow: hidden;
    border-top: 1px solid #10b981;
    border-bottom: 1px solid #d1fae5;
}

.hub-link-checker::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.link-checker-cta {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.link-checker-content {
    color: #1f2937;
}

.lc-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.lc-cta-title {
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 16px;
    line-height: 1.2;
    color: #065f46;
}

.lc-cta-desc {
    font-size: 17px;
    line-height: 1.7;
    color: #374151;
    margin: 0 0 24px;
}

.lc-cta-features {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.lc-cta-features span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #1f2937;
}

.lc-cta-features i {
    color: #10b981;
}

.lc-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.lc-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.4);
    color: #fff;
}

/* Demo Card Visual */
.link-checker-visual {
    display: flex;
    justify-content: center;
}

.lc-demo-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 32px;
    width: 100%;
    max-width: 320px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.lc-demo-url {
    background: #f1f5f9;
    padding: 14px 20px;
    border-radius: 10px;
    font-family: monospace;
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 16px;
}

.lc-demo-arrow {
    color: #10b981;
    font-size: 24px;
    margin-bottom: 16px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

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

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

.lc-demo-result {
    padding: 16px;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-radius: 10px;
    border: 2px solid #10b981;
}

.lc-demo-score {
    font-size: 20px;
    font-weight: 800;
    color: #059669;
    margin-bottom: 8px;
}

.lc-demo-final {
    font-size: 13px;
    color: #374151;
    font-family: monospace;
}

/* Responsive */
@media (max-width: 992px) {
    .link-checker-cta {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .lc-cta-features {
        justify-content: center;
    }

    .link-checker-visual {
        order: -1;
    }

    .lc-demo-card {
        max-width: 280px;
    }

    .lc-cta-title {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .hub-link-checker {
        padding: 40px 0;
    }

    .lc-cta-title {
        font-size: 24px;
    }

    .lc-cta-btn {
        width: 100%;
        justify-content: center;
    }
}


/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.section-link {
    color: var(--trstyler-primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.section-link:hover {
    text-decoration: underline;
}

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

/* Hub Featured Tools */
.hub-featured {
    padding: 100px 0;
    background: linear-gradient(180deg, #fff 0%, #f8f9ff 100%);
    position: relative;
}

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

.tool-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    padding: 32px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--trstyler-primary), #ff6b6b, #667eea);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.tool-card:hover {
    border-color: transparent;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    transform: translateY(-8px);
}

.tool-card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--trstyler-primary), #ff6b6b);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    margin-bottom: 24px;
    box-shadow: 0 8px 20px rgba(199, 28, 27, 0.25);
    transition: transform 0.3s ease;
}

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

.tool-card-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--trstyler-headings-color);
    margin: 0 0 10px;
}

.tool-card-desc {
    font-size: 14px;
    color: var(--trstyler-body-color);
    margin: 0 0 18px;
    line-height: 1.6;
}

.tool-card-category {
    font-size: 11px;
    color: var(--trstyler-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(199, 28, 27, 0.08);
    padding: 6px 12px;
    border-radius: 20px;
}

/* Hub Categories */
.hub-categories {
    padding: 100px 0;
    background: #0f0f23;
    position: relative;
}

.hub-categories .section-title {
    color: #fff;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 24px 28px;
    border-radius: 16px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.category-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(199, 28, 27, 0.5);
    transform: translateX(8px);
}

.category-icon {
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, var(--trstyler-primary), #ff6b6b);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
}

.category-info {
    flex: 1;
}

.category-name {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 4px;
}

.category-count {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.category-arrow {
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.category-card:hover .category-arrow {
    color: #ff6b6b;
    transform: translateX(6px);
}

/* How It Works */
.hub-how {
    padding: 100px 0;
    background: linear-gradient(180deg, #f8f9ff 0%, #fff 100%);
}

.how-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.how-step {
    text-align: center;
    padding: 40px 30px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.how-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.how-step-num {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--trstyler-primary), #ff6b6b);
    color: #fff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    margin: 0 auto 24px;
    box-shadow: 0 10px 30px rgba(199, 28, 27, 0.3);
}

.how-step h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px;
}

.how-step p {
    color: var(--trstyler-body-color);
    margin: 0;
    line-height: 1.7;
}

/* Offers Section on Hub */
.hub-offers {
    padding: 80px 0;
    background: linear-gradient(135deg, #fef3f2, #fdf4ff);
}

.hub-offers .section-header {
    text-align: center;
    margin-bottom: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.label-icon {
    font-size: 18px;
}

.hub-offers .section-subtitle {
    color: var(--text-muted);
    max-width: 600px;
    margin: 12px auto 0;
}

.offers-grid-home {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.offer-card-home {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.offer-card-home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #ec4899);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.offer-card-home:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

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

.offer-card-badge {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #fef3f2, #fdf4ff);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.offer-card-content {
    flex: 1;
}

.offer-brand {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.offer-card-home .offer-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin: 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.offer-value {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, #dcfce7, #d1fae5);
    color: #059669;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
}

.offer-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.offer-cta i {
    transition: transform 0.3s;
}

.offer-card-home:hover .offer-cta i {
    transform: translateX(4px);
}

.section-cta {
    text-align: center;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-view-all:hover {
    background: #a41817;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(199, 28, 27, 0.3);
    color: #fff;
}

@media (max-width: 992px) {
    .offers-grid-home {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .offers-grid-home {
        grid-template-columns: 1fr;
    }
}

/* Blog Section on Hub */
.hub-blog {
    padding: 80px 0;
    background: var(--trstyler-bg-common);
}

.blog-grid-home {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-card-home {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.blog-card-home:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.blog-card-thumb {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
}

.blog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.blog-card-home:hover .blog-card-thumb img {
    transform: scale(1.05);
}

.blog-card-placeholder {
    width: 100%;
    height: 100%;
    background: #e5e7eb;
}

.blog-card-body {
    padding: 20px;
}

.blog-card-cat {
    display: inline-block;
    font-size: 12px;
    color: var(--trstyler-primary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.blog-card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px;
    line-height: 1.4;
}

.blog-card-title a {
    color: var(--trstyler-headings-color);
}

.blog-card-title a:hover {
    color: var(--trstyler-primary);
}

.blog-card-date {
    font-size: 13px;
    color: var(--trstyler-body-color);
}

/* ===================================================================
   Utilities Listing Page
   =================================================================== */

.hero-subtitle {
    font-size: 16px;
    color: var(--trstyler-body-color);
    margin-top: 12px;
}

.utilities-section {
    padding: 60px 0;
    background: #fff;
}

.utilities-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.utilities-toolbar {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.utilities-search {
    flex: 1;
    display: flex;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.utilities-search-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    font-size: 14px;
    outline: none;
}

.utilities-search button {
    background: var(--trstyler-primary);
    color: #fff;
    border: none;
    padding: 12px 18px;
    cursor: pointer;
}

.utilities-filter-select {
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
}

.utilities-category-section {
    margin-bottom: 40px;
}

.category-section-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--trstyler-primary);
    display: inline-block;
}

.tools-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tool-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tool-list-item:hover {
    border-color: var(--trstyler-primary);
    box-shadow: 0 4px 20px rgba(199, 28, 27, 0.08);
}

.tool-list-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--trstyler-primary), #e74c3c);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
}

.tool-list-info {
    flex: 1;
}

.tool-list-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--trstyler-headings-color);
    margin: 0 0 4px;
}

.tool-list-info p {
    font-size: 14px;
    color: var(--trstyler-body-color);
    margin: 0;
}

.tool-list-cat {
    font-size: 12px;
    color: var(--trstyler-primary);
    font-weight: 500;
    background: rgba(199, 28, 27, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
}

.tool-list-arrow {
    color: #cbd5e1;
    transition: color 0.3s, transform 0.3s;
}

.tool-list-item:hover .tool-list-arrow {
    color: var(--trstyler-primary);
    transform: translateX(4px);
}

/* Sidebar */
.utilities-sidebar,
.tool-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ad-placeholder {
    background: #f8fafc;
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    width: 300px;
    max-width: 100%;
}

/* Sidebar Ad - 300x250 */
.utilities-sidebar .ad-placeholder,
.tool-sidebar .ad-placeholder {
    width: 300px;
    height: 250px;
    min-height: 250px;
}

/* Below Result Ad - Responsive */
.ad-below-result {
    margin-top: 32px;
    width: 100%;
    height: 250px;
    min-height: 250px;
}

/* In-Content Ad (Blog Posts) */
.ad-incontent {
    margin: 30px auto;
    width: 100%;
    max-width: 728px;
    height: 90px;
    min-height: 90px;
}

/* Post Sidebar Ad */
.post-sidebar .ad-placeholder {
    width: 300px;
    height: 250px;
    min-height: 250px;
}

.cat-quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cat-quick-links li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
    color: var(--trstyler-body-color);
    text-decoration: none;
    transition: color 0.3s;
}

.cat-quick-links li:last-child a {
    border-bottom: none;
}

.cat-quick-links li a:hover {
    color: var(--trstyler-primary);
}

.cat-quick-links li a i {
    width: 20px;
    color: var(--trstyler-primary);
}

.cat-quick-links li a span {
    margin-left: auto;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

/* ===================================================================
   Individual Tool Page
   =================================================================== */

/* Prevent horizontal scroll on tool pages */
body.tool-single-page {
    overflow-x: hidden;
}

.inner-hero-tool {
    padding: 50px 0;
    overflow: hidden;
}

/* White text overrides for colored background */
.inner-hero-tool .breadcrumb,
.inner-hero-tool .breadcrumb li,
.inner-hero-tool .breadcrumb a,
.inner-hero-tool .breadcrumb li::after {
    color: #fff !important;
}

.inner-hero-tool .breadcrumb a:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.inner-hero-tool h1 {
    color: #fff !important;
}

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

.tool-hero-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--trstyler-primary), #e74c3c);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 36px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(199, 28, 27, 0.3);
}

.tool-hero-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 12px;
}

.tool-section {
    padding: 60px 0;
    background: #fff;
}

.tool-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

.tool-interface {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
}

.tool-input {
    width: 100%;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    min-height: 140px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.tool-input:focus {
    outline: none;
    border-color: var(--trstyler-primary);
    box-shadow: 0 0 0 3px rgba(199, 28, 27, 0.1);
}

.tool-input-text {
    min-height: auto;
    padding: 14px 16px;
}

.tool-submit {
    width: 100%;
    margin-top: 16px;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--trstyler-primary), #e74c3c);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tool-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(199, 28, 27, 0.3);
}

.tool-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.tool-submit .btn-loading {
    display: none;
}

.tool-submit.loading .btn-text {
    display: none;
}

.tool-submit.loading .btn-loading {
    display: inline-flex;
}

.tool-result {
    margin-top: 24px;
    padding: 24px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.tool-result.hidden {
    display: none;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.result-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: var(--trstyler-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-copy {
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

.result-copy:hover {
    border-color: var(--trstyler-primary);
    color: var(--trstyler-primary);
}

.result-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--trstyler-headings-color);
}

.result-content strong {
    color: var(--trstyler-primary);
    font-weight: 600;
}

.result-content em {
    font-style: italic;
    color: #475569;
}

/* Result paragraphs */
.result-para {
    margin: 0 0 16px;
}

.result-para:last-child {
    margin-bottom: 0;
}

/* Result headings */
.result-h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 20px 0 12px;
    color: var(--trstyler-headings-color);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--trstyler-primary);
}

.result-h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 16px 0 10px;
    color: var(--trstyler-headings-color);
}

.result-h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 14px 0 8px;
    color: #475569;
}

/* Result lists */
.result-list {
    margin: 16px 0;
    padding: 0;
    list-style: none;
    counter-reset: item;
}

.result-list li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 14px 50px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border-left: 3px solid var(--trstyler-primary);
    transition: all 0.2s ease;
}

.result-list li:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    transform: translateX(4px);
}

.result-list li .item-content {
    flex: 1;
}

.result-list li::before {
    content: counter(item);
    counter-increment: item;
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    background: var(--trstyler-primary);
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Per-item copy button */
.item-copy-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 14px;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.result-list li:hover .item-copy-btn {
    opacity: 1;
}

.item-copy-btn:hover {
    background: var(--trstyler-primary);
    border-color: var(--trstyler-primary);
    color: #fff;
}

.item-copy-btn.copied {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
    opacity: 1;
}

.result-bullets {
    margin: 12px 0;
    padding-left: 0;
    list-style: none;
}

.result-bullets li {
    position: relative;
    padding: 8px 0 8px 24px;
    border-bottom: 1px dashed #e5e7eb;
}

.result-bullets li:last-child {
    border-bottom: none;
}

.result-bullets li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: bold;
}

/* Code styling */
.result-code {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #e2e8f0;
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    font-size: 13px;
    font-family: 'Monaco', 'Consolas', monospace;
    margin: 16px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.result-code code {
    background: none;
    padding: 0;
    color: inherit;
}

.inline-code {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-weight: 500;
}

/* Divider */
.result-divider {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
    margin: 20px 0;
}

.tool-error {
    margin-top: 16px;
    padding: 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    color: #dc2626;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tool-error.hidden {
    display: none;
}

.tool-description {
    margin-top: 32px;
    padding: 32px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    border: 1px solid #e5e7eb;
}

.tool-description h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 20px;
    color: var(--trstyler-headings-color);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--trstyler-primary);
}

.tool-description h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 24px 0 12px;
    color: var(--trstyler-headings-color);
}

.tool-description p {
    color: var(--trstyler-body-color);
    line-height: 1.8;
    margin: 0 0 16px;
}

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

.tool-description strong {
    color: var(--trstyler-primary);
    font-weight: 600;
}

.tool-description ul {
    margin: 12px 0 20px;
    padding-left: 0;
    list-style: none;
}

.tool-description ul li {
    position: relative;
    padding: 8px 0 8px 28px;
    color: var(--trstyler-body-color);
    line-height: 1.6;
}

.tool-description ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: bold;
    font-size: 14px;
}

.tool-description ul li+li {
    border-top: 1px dashed #e5e7eb;
}

/* How to Use Section */
.tool-how-to-use {
    background: linear-gradient(145deg, #fefce8, #fef9c3);
    border: 1px solid #fde047;
    border-radius: 16px;
    padding: 28px;
    margin-top: 28px;
}

.tool-how-to-use h2 {
    font-size: 20px;
    font-weight: 700;
    color: #854d0e;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tool-how-to-use h2 i {
    color: #eab308;
    font-size: 22px;
}

.how-to-content {
    color: #713f12;
}

.how-to-content ol {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: how-to-step;
}

.how-to-content ol li {
    position: relative;
    padding: 16px 16px 16px 60px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    counter-increment: how-to-step;
    font-size: 15px;
    line-height: 1.6;
}

.how-to-content ol li:last-child {
    margin-bottom: 0;
}

.how-to-content ol li::before {
    content: counter(how-to-step);
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #eab308, #ca8a04);
    color: white;
    font-weight: 700;
    font-size: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.how-to-content p {
    margin: 0 0 12px;
    line-height: 1.7;
}

.how-to-content p:last-child {
    margin-bottom: 0;
}

.how-to-content strong {
    color: #854d0e;
}

.how-to-content code {
    background: rgba(234, 179, 8, 0.2);
    color: #854d0e;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}

.how-to-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.how-to-content ul li {
    position: relative;
    padding: 8px 0 8px 24px;
    font-size: 15px;
}

.how-to-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #65a30d;
    font-weight: bold;
}

.ad-below-result {
    margin-top: 32px;
}

/* Related Tools in Sidebar */
.related-tools {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-tool {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-tool:hover {
    background: #f1f5f9;
}

.related-tool-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--trstyler-primary), #e74c3c);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
}

.related-tool-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--trstyler-headings-color);
    margin: 0 0 4px;
}

.related-tool-info p {
    font-size: 12px;
    color: var(--trstyler-body-color);
    margin: 0;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 1px solid #c71c1b;
    border-color: var(--trstyler-primary, #c71c1b);
    color: #c71c1b;
    color: var(--trstyler-primary, #c71c1b);
    background: transparent;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: var(--trstyler-primary, #c71c1b);
    color: #fff;
}

.btn-sm {
    padding: 8px 12px;
    font-size: 13px;
}

/* ===================================================================
   Responsive - Mobile First
   =================================================================== */

@media (max-width: 1024px) {

    .tools-grid,
    .how-steps,
    .blog-grid-home {
        grid-template-columns: repeat(2, 1fr);
    }

    .utilities-layout,
    .tool-layout {
        grid-template-columns: 1fr;
    }

    /* Main content first, sidebar second on mobile */
    .utilities-main,
    .tool-main {
        order: 1;
    }

    .utilities-sidebar,
    .tool-sidebar {
        order: 2;
    }
}

@media (max-width: 768px) {
    .hub-hero {
        padding: 60px 0;
    }

    .hub-title {
        font-size: 32px;
    }

    .hub-search {
        flex-direction: row;
    }

    .hub-search-input {
        padding: 14px 16px;
        font-size: 14px;
    }

    .hub-search-btn {
        padding: 14px 18px;
        font-size: 16px;
    }

    .tools-grid,
    .how-steps,
    .blog-grid-home,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .utilities-toolbar {
        flex-direction: column;
    }

    .tool-hero-icon {
        width: 64px;
        height: 64px;
        font-size: 28px;
    }

    .tool-interface {
        padding: 20px;
    }

    /* Mobile Ad Sizes - 300x250 */
    .ad-placeholder,
    .utilities-sidebar .ad-placeholder,
    .tool-sidebar .ad-placeholder,
    .ad-below-result {
        width: 300px;
        height: 250px;
        min-height: 250px;
        margin: 0 auto;
    }
}

/* Homepage Footer - Remove extra margin */
.hub-hero~.site-footer,
.hub-hero+*+*+.site-footer,
body:has(.hub-hero) .site-footer {
    margin-top: 0;
}

/* ======================================================
   DYNAMIC TOOL PAGE CATEGORY STYLES
   Each category has unique gradient and icon effects
   ====================================================== */

/* Base icon animation */
@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes iconGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 15px var(--cat-glow));
    }

    50% {
        filter: drop-shadow(0 0 25px var(--cat-glow));
    }
}

.inner-hero-tool .tool-hero-icon {
    animation: iconPulse 3s ease-in-out infinite;
}

.inner-hero-tool .tool-hero-icon i {
    animation: iconGlow 2s ease-in-out infinite;
}

/* Category 1: Productivity - Blue/Cyan - Focus & Clarity */
.tool-cat-productivity {
    --cat-glow: rgba(59, 130, 246, 0.5);
    background: linear-gradient(-45deg, #0f172a, #1e3a5f, #0d4f8c, #1e293b) !important;
}

/* Category 2: Content & Social - Pink/Purple - Creative & Social */
.tool-cat-content-social {
    --cat-glow: rgba(236, 72, 153, 0.5);
    background: linear-gradient(-45deg, #1e1b4b, #581c87, #86198f, #2d1b4e) !important;
}

/* Category 3: Personal Life - Orange/Warm - Friendly & Personal */
.tool-cat-personal {
    --cat-glow: rgba(249, 115, 22, 0.5);
    background: linear-gradient(-45deg, #451a03, #7c2d12, #9a3412, #431407) !important;
}

/* Category 4: Shopping & Finance - Green/Teal - Trust & Money */
.tool-cat-shopping-finance {
    --cat-glow: rgba(34, 197, 94, 0.5);
    background: linear-gradient(-45deg, #052e16, #14532d, #166534, #064e3b) !important;
}

/* Category 5: Health & Wellness - Lime/Green - Fresh & Natural */
.tool-cat-health {
    --cat-glow: rgba(132, 204, 22, 0.5);
    background: linear-gradient(-45deg, #1a2e05, #365314, #4d7c0f, #166534) !important;
}

/* Category 6: Learning & Education - Indigo/Blue - Academic & Wisdom */
.tool-cat-learning {
    --cat-glow: rgba(99, 102, 241, 0.5);
    background: linear-gradient(-45deg, #1e1b4b, #312e81, #3730a3, #1e3a8a) !important;
}

/* Category 7: Career & Professional - Slate/Blue - Corporate & Serious */
.tool-cat-career {
    --cat-glow: rgba(100, 116, 139, 0.5);
    background: linear-gradient(-45deg, #0f172a, #1e293b, #334155, #1e3a5f) !important;
}

/* Category 8: Writing & Creative - Purple/Magenta - Artistic & Inspiration */
.tool-cat-writing {
    --cat-glow: rgba(168, 85, 247, 0.5);
    background: linear-gradient(-45deg, #2e1065, #581c87, #7e22ce, #86198f) !important;
}

/* Category 9: Developer Tools - Dark/Cyan - Tech & Code */
.tool-cat-developer {
    --cat-glow: rgba(6, 182, 212, 0.5);
    background: linear-gradient(-45deg, #0c0c0c, #0f172a, #134e4a, #164e63) !important;
}

/* Category 10: Home & Lifestyle - Coral/Rose - Comfortable & Warm */
.tool-cat-lifestyle {
    --cat-glow: rgba(244, 63, 94, 0.5);
    background: linear-gradient(-45deg, #3f0520, #831843, #9f1239, #be123c) !important;
}

/* Category 11: SEO & Marketing - Red/Orange - Energy & Conversion */
.tool-cat-seo-marketing {
    --cat-glow: rgba(239, 68, 68, 0.5);
    background: linear-gradient(-45deg, #450a0a, #7f1d1d, #b91c1c, #c2410c) !important;
}

/* Category 12: Language Summarizers - Teal/Emerald - Global & Translation */
.tool-cat-language-summarizers {
    --cat-glow: rgba(20, 184, 166, 0.5);
    background: linear-gradient(-45deg, #042f2e, #134e4a, #0f766e, #047857) !important;
}

/* Default fallback */
.tool-cat-default {
    --cat-glow: rgba(199, 28, 27, 0.5);
    background: linear-gradient(-45deg, #0f0f23, #1a1a3e, #2d1b4e, #1e3a5f) !important;
}

/* Animated gradient background for all tool heroes */
.inner-hero-tool {
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

/* Category-specific decorative elements */
.inner-hero-tool::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    top: -100px;
    right: -50px;
    background: var(--cat-glow);
    animation: float 10s ease-in-out infinite;
}

.inner-hero-tool::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.2;
    bottom: -50px;
    left: -50px;
    background: var(--cat-glow);
    animation: float 8s ease-in-out infinite reverse;
}

/* Mobile fix - prevent horizontal scroll */
@media (max-width: 768px) {

    html,
    body {
        overflow-x: hidden;
    }

    body.tool-single-page {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .inner-hero-tool::before,
    .inner-hero-tool::after {
        display: none;
    }

    .inner-hero-tool {
        overflow: hidden;
    }
}