/* =========================================
   1. GLOBAL & STUDIO SETUP
   ========================================= */
:root {
    --primary: #F97316;
    --primary-hover: #EA580C;
    --secondary: #E11D48;
    --dark-bg: #020617;
    --card-bg: #0F172A;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --studio-bg: #0a0a0a;
    --panel-bg: rgba(20, 20, 20, 0.95);
    --canvas-bg: #121212;
    --border-color: rgba(255, 255, 255, 0.1);
    --radius-lg: 16px;
    --radius-md: 8px;
    --success-color: #22c55e;
}

/* Studio Layout */
.studio-wrapper {
    display: grid;
    grid-template-columns: 320px 1fr 320px;
    grid-template-rows: calc(100vh - 110px);
    gap: 16px;
    padding: 0 20px 20px 20px;
    box-sizing: border-box;
    overflow: hidden;
    margin-top: 100px;
}

/* Panels */
.studio-panel {
    display: flex;
    flex-direction: column;
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.panel-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    min-height: 60px;
}

.panel-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.badge-free {
    background: var(--success-color);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
}

.panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.panel-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.3);
}

/* Center Canvas */
.studio-canvas {
    background-color: var(--canvas-bg);
    background-image:
        linear-gradient(45deg, #1a1a1a 25%, transparent 25%),
        linear-gradient(-45deg, #1a1a1a 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #1a1a1a 75%),
        linear-gradient(-45deg, transparent 75%, #1a1a1a 75%);
    background-size: 20px 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.canvas-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
}

/* Upload Area */
.upload-area-large {
    text-align: center;
    padding: 60px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.upload-area-large:hover {
    border-color: var(--primary);
    background: rgba(249, 115, 22, 0.05);
}

.upload-icon-large {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.upload-area-large:hover .upload-icon-large {
    color: var(--primary);
}

/* Preview Image */
.resize-preview-wrapper {
    max-width: 100%;
    max-height: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.resize-image {
    max-height: calc(100vh - 250px);
    max-width: 100%;
    object-fit: contain;
    display: block;
}

/* =========================================
   RESIZE SPECIFIC CONTROLS
   ========================================= */

/* Mode Switcher */
.mode-switcher {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.mode-btn {
    flex: 1;
    padding: 8px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.mode-btn.active {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

/* Input Groups (Pixel Mode) */
.input-group {
    margin-bottom: 12px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.input-wrapper input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 10px 30px 10px 12px;
    color: white;
    font-size: 0.9rem;
    appearance: textfield;
    -moz-appearance: textfield;
}

.input-wrapper input::-webkit-inner-spin-button {
    appearance: none;
    -webkit-appearance: none;
}

.input-wrapper .unit {
    position: absolute;
    right: 12px;
    color: var(--text-muted);
    font-size: 0.8rem;
    pointer-events: none;
}

/* Sliders (Percentage Mode) */
.slider-group {
    margin-bottom: 20px;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #eee;
}

.slider-val {
    color: var(--primary);
    font-weight: 600;
    background: rgba(249, 115, 22, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.range-slider {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Toggle Switch */
.toggle-switch-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.toggle-label {
    font-size: 0.9rem;
    color: var(--text-main);
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--primary);
}

input:checked+.slider:before {
    transform: translateX(20px);
}

/* File Info */
.file-info-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--border-color);
}

.file-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.file-info-label {
    color: var(--text-muted);
}

.file-info-value {
    color: white;
    font-weight: 600;
}

/* Utils */
.section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: block;
    letter-spacing: 1px;
}

.panel-divider {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

.info-box-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    opacity: 0.6;
}

.info-box-empty i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Download Button */
#downloadBtn {
    background: linear-gradient(135deg, #F97316 0%, #db2777 100%) !important;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    transition: all 0.3s;
}

#downloadBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.6);
}

/* Loading */
.progress-container-floating {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    padding: 20px 40px;
    border-radius: 12px;
    text-align: center;
    z-index: 100;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

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

/* Responsive */
/* =========================================
   RESPONSIVE MEDIA QUERIES - RESIZE TOOL
   ========================================= */

/* Extra Small Devices (320px - 480px) */
@media (max-width: 480px) {
    :root {
        --panel-width: 100%;
        --header-height: 60px;
    }

    .studio-wrapper {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 0 12px 12px 12px;
        margin-top: 70px;
        height: auto;
        overflow: visible;
    }

    /* Canvas First */
    .studio-canvas {
        order: 1;
        height: 350px;
        min-height: 350px;
        border-radius: 12px;
    }

    .canvas-container {
        padding: 20px;
    }

    .upload-area-large {
        padding: 30px 20px;
        border-radius: 12px;
    }

    .upload-icon-large {
        font-size: 3rem;
        margin-bottom: 16px;
    }

    .upload-area-large h2 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }

    .upload-area-large p {
        font-size: 0.85rem;
    }

    /* Preview Image */
    .resize-image {
        max-height: 300px !important;
    }

    .resize-preview-wrapper {
        border-radius: 6px;
    }

    /* Left Panel Second */
    .studio-panel:first-of-type {
        order: 2;
        height: auto;
        min-height: auto;
    }

    /* Right Panel Third */
    .studio-panel:last-of-type {
        order: 3;
        height: auto;
        min-height: auto;
    }

    /* Panel Headers */
    .panel-header {
        padding: 12px 16px;
        min-height: 50px;
    }

    .panel-header h3 {
        font-size: 0.9rem;
        gap: 6px;
    }

    .badge-free {
        font-size: 0.65rem;
        padding: 2px 5px;
    }

    .panel-content {
        padding: 16px;
    }

    .panel-footer {
        padding: 16px;
    }

    /* File Info Section */
    .file-info-section {
        padding: 12px;
        border-radius: 8px;
    }

    .file-info-row {
        margin-bottom: 9px;
        font-size: 0.85rem;
        flex-wrap: wrap;
        gap: 4px;
    }

    .file-info-label {
        font-size: 0.8rem;
    }

    .file-info-value {
        font-size: 0.85rem;
    }

    /* Mode Switcher */
    .mode-switcher {
        border-radius: 6px;
        flex-direction: column;
        gap: 2px;
    }

    .mode-btn {
        padding: 9px;
        font-size: 0.8rem;
        border-radius: 5px;
    }

    .mode-btn.active {
        font-weight: 700;
    }

    /* Input Groups (Pixel Mode) */
    .input-group {
        margin-bottom: 10px;
    }

    .input-group label {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }

    .input-wrapper {
        border-radius: 5px;
    }

    .input-wrapper input {
        padding: 9px 28px 9px 10px;
        font-size: 0.85rem;
    }

    .input-wrapper .unit {
        right: 10px;
        font-size: 0.75rem;
    }

    /* Sliders (Percentage Mode) */
    .slider-group {
        margin-bottom: 16px;
    }

    .slider-label {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }

    .slider-val {
        font-size: 0.75rem;
        padding: 2px 6px;
    }

    .range-slider {
        height: 5px;
    }

    .range-slider::-webkit-slider-thumb {
        width: 16px;
        height: 16px;
    }

    /* Toggle Switch */
    .toggle-switch-wrapper {
        padding: 10px 0;
    }

    .toggle-label {
        font-size: 0.85rem;
    }

    .toggle-switch {
        width: 42px;
        height: 22px;
    }

    .slider:before {
        height: 16px;
        width: 16px;
        left: 3px;
        bottom: 3px;
    }

    input:checked+.slider:before {
        transform: translateX(20px);
    }

    /* Section Labels */
    .section-label {
        font-size: 0.7rem;
        margin-bottom: 8px;
    }

    /* Buttons */
    .btn-full,
    .btn-primary {
        padding: 11px 14px;
        font-size: 0.9rem;
    }

    #downloadBtn {
        font-size: 0.95rem;
        gap: 8px;
    }

    /* Progress Container */
    .progress-container-floating {
        padding: 16px 30px;
        min-width: 180px;
    }

    .loader-spinner {
        width: 35px;
        height: 35px;
        margin-bottom: 12px;
    }

    .progress-text {
        font-size: 0.85rem;
    }

    /* Info Boxes */
    .info-box-empty {
        padding: 40px 20px;
        font-size: 0.9rem;
    }

    .info-box-empty i {
        font-size: 2rem !important;
        margin-bottom: 12px !important;
    }

    .panel-divider {
        margin: 16px 0;
    }
}

/* Tiny Devices (320px - 374px) */
@media (max-width: 374px) {
    .studio-wrapper {
        padding: 0 8px 8px 8px;
        gap: 10px;
        margin-top: 60px;
    }

    .studio-canvas {
        height: 300px;
        min-height: 300px;
    }

    .canvas-container {
        padding: 15px;
    }

    .upload-area-large {
        padding: 25px 15px;
    }

    .upload-icon-large {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }

    .upload-area-large h2 {
        font-size: 1.1rem;
        margin-bottom: 6px;
    }

    .upload-area-large p {
        font-size: 0.8rem;
    }

    .upload-area-large .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .resize-image {
        max-height: 250px !important;
    }

    .panel-header {
        padding: 10px 12px;
        min-height: 45px;
    }

    .panel-header h3 {
        font-size: 0.85rem;
        gap: 5px;
    }

    .badge-free {
        font-size: 0.6rem;
        padding: 1px 4px;
    }

    .panel-content {
        padding: 12px;
    }

    .panel-footer {
        padding: 12px;
    }

    .file-info-section {
        padding: 10px;
        border-radius: 6px;
    }

    .file-info-row {
        margin-bottom: 8px;
        font-size: 0.8rem;
    }

    .file-info-label {
        font-size: 0.75rem;
    }

    .file-info-value {
        font-size: 0.8rem;
    }

    .mode-switcher {
        gap: 1px;
    }

    .mode-btn {
        padding: 8px;
        font-size: 0.75rem;
        border-radius: 4px;
    }

    .input-group {
        margin-bottom: 8px;
    }

    .input-group label {
        font-size: 0.75rem;
        margin-bottom: 5px;
    }

    .input-wrapper {
        border-radius: 4px;
    }

    .input-wrapper input {
        padding: 8px 26px 8px 9px;
        font-size: 0.8rem;
    }

    .input-wrapper .unit {
        right: 9px;
        font-size: 0.7rem;
    }

    .slider-group {
        margin-bottom: 14px;
    }

    .slider-label {
        font-size: 0.8rem;
        margin-bottom: 5px;
    }

    .slider-val {
        font-size: 0.7rem;
        padding: 1px 5px;
    }

    .range-slider {
        height: 4px;
    }

    .range-slider::-webkit-slider-thumb {
        width: 15px;
        height: 15px;
    }

    .toggle-switch-wrapper {
        padding: 8px 0;
    }

    .toggle-label {
        font-size: 0.8rem;
    }

    .toggle-switch {
        width: 40px;
        height: 20px;
    }

    .slider:before {
        height: 14px;
        width: 14px;
        left: 3px;
        bottom: 3px;
    }

    input:checked+.slider:before {
        transform: translateX(20px);
    }

    .section-label {
        font-size: 0.65rem;
        margin-bottom: 7px;
    }

    .btn-full,
    .btn-primary {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    #downloadBtn {
        font-size: 0.9rem;
        gap: 7px;
    }

    .progress-container-floating {
        padding: 14px 25px;
        min-width: 160px;
    }

    .loader-spinner {
        width: 30px;
        height: 30px;
        margin-bottom: 10px;
    }

    .progress-text {
        font-size: 0.8rem;
    }

    .info-box-empty {
        padding: 30px 15px;
        font-size: 0.85rem;
    }

    .info-box-empty i {
        font-size: 1.8rem !important;
        margin-bottom: 10px !important;
    }

    .panel-divider {
        margin: 14px 0;
    }
}

/* Small Tablets (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .studio-wrapper {
        display: flex;
        flex-direction: column;
        gap: 14px;
        padding: 0 16px 16px 16px;
        margin-top: 80px;
        height: auto;
        overflow: visible;
    }

    .studio-canvas {
        order: 1;
        height: 400px;
        min-height: 400px;
    }

    .studio-panel:first-of-type {
        order: 2;
        height: auto;
    }

    .studio-panel:last-of-type {
        order: 3;
        height: auto;
    }

    .canvas-container {
        padding: 25px;
    }

    .upload-area-large {
        padding: 50px 30px;
    }

    .resize-image {
        max-height: 350px !important;
    }

    .panel-content {
        padding: 18px;
    }

    .panel-footer {
        padding: 18px;
    }

    .file-info-section {
        padding: 14px;
    }

    .mode-switcher {
        flex-direction: row;
    }

    .mode-btn {
        padding: 10px;
    }
}



/* Landscape Orientation for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .studio-wrapper {
        margin-top: 60px;
    }

    .studio-canvas {
        height: 280px;
        min-height: 280px;
    }

    .resize-image {
        max-height: 230px !important;
    }

    .upload-area-large {
        padding: 25px 20px;
    }

    .upload-icon-large {
        font-size: 2.5rem;
    }

    .info-box-empty {
        padding: 30px 15px;
    }
}

/* Touch-Friendly Enhancements */
@media (hover: none) and (pointer: coarse) {
    .mode-btn {
        min-height: 44px;
        /* iOS touch target guideline */
        padding: 12px 10px;
    }

    .toggle-switch {
        width: 48px;
        /* Larger touch area */
        height: 26px;
    }

    .slider:before {
        height: 20px;
        width: 20px;
    }

    input:checked+.slider:before {
        transform: translateX(22px);
    }

    .range-slider {
        height: 6px;
        /* Thicker for easier grabbing */
    }

    .range-slider::-webkit-slider-thumb {
        width: 20px;
        height: 20px;
    }

    /* Better touch feedback for inputs */
    .input-wrapper input {
        padding: 12px 32px 12px 12px;
        font-size: 16px;
        /* Prevent iOS zoom on focus */
    }
}

/* Prevent Horizontal Scroll on Mobile */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .studio-wrapper {
        max-width: 100vw;
        overflow-x: hidden;
    }
}

/* Mode Switcher Stacking on Tiny Screens */
@media (max-width: 360px) {
    .mode-switcher {
        flex-direction: column;
        gap: 4px;
    }

    .mode-btn {
        width: 100%;
        text-align: center;
    }
}

/* Input Groups Better Spacing on Small Screens */
@media (max-width: 374px) {
    .input-group label {
        margin-bottom: 4px;
    }

    .input-wrapper {
        min-height: 40px;
    }
}

/* Toggle Switch Better Visibility */
@media (max-width: 480px) {
    .toggle-switch-wrapper {
        background: rgba(255, 255, 255, 0.03);
        padding: 12px;
        border-radius: 8px;
        margin: 8px 0;
    }
}

/* Related Tools Section Responsive */
@media (max-width: 480px) {
    .related-tools {
        margin-top: 1.5rem;
        padding: 1rem;
        border-radius: 6px;
    }

    .related-tools h3 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .related-tools-list {
        gap: 0.5rem;
    }

    .related-tool-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        gap: 0.4rem;
        border-radius: 15px;
    }

    .related-tool-link i {
        font-size: 0.8rem;
    }
}

/* Internal Link Styles Responsive */
@media (max-width: 480px) {

    .internal-link,
    a.internal-link {
        font-size: 0.9rem;
    }

    p .internal-link,
    .tool-desc .internal-link {
        display: inline-block;
        padding: 2px 0;
    }
}

/* Slider Group Better Layout on Mobile */
@media (max-width: 374px) {
    .slider-label {
        flex-wrap: wrap;
        gap: 4px;
    }

    .slider-val {
        margin-left: auto;
    }
}

/* Input Wrapper Focus State Enhancement */
@media (max-width: 480px) {
    .input-wrapper:focus-within {
        border-color: var(--primary);
        box-shadow: 0 0 0 1px var(--primary);
    }
}

/* Button Stacking on Very Small Screens */
@media (max-width: 360px) {
    .btn-primary {
        padding: 12px 10px;
        font-size: 0.85rem;
    }

    #downloadBtn {
        font-size: 0.9rem;
        padding: 12px 10px;
    }
}

/* File Info Section Better Readability */
@media (max-width: 374px) {
    .file-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .file-info-value {
        font-size: 0.85rem;
        margin-left: 0;
    }
}

/* Panel Divider Spacing Optimization */
@media (max-width: 374px) {
    .panel-divider {
        margin: 12px 0;
    }
}

/* Section Label Better Spacing */
@media (max-width: 374px) {
    .section-label {
        margin-bottom: 6px;
        letter-spacing: 0.5px;
    }
}

/* Progress Container Sizing */
@media (max-width: 360px) {
    .progress-container-floating {
        padding: 12px 20px;
        min-width: 140px;
        border-radius: 10px;
    }

    .loader-spinner {
        width: 28px;
        height: 28px;
    }

    .progress-text {
        font-size: 0.75rem;
    }
}

/* Info Box Empty State Optimization */
@media (max-width: 360px) {
    .info-box-empty {
        padding: 25px 12px;
    }

    .info-box-empty i {
        font-size: 1.6rem !important;
    }

    .info-box-empty p {
        font-size: 0.8rem;
    }
}

/* Badge Responsive Sizing */
@media (max-width: 374px) {
    .badge-free {
        font-size: 0.55rem;
        padding: 1px 3px;
        letter-spacing: 0.3px;
    }
}

/* =========================================
   INTERNAL LINK STYLES - SEO & UX
   ========================================= */
.internal-link,
a.internal-link {
    color: var(--primary);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
}

.internal-link:hover,
a.internal-link:hover {
    color: var(--primary-hover);
    border-bottom-color: var(--primary);
}

.internal-link:focus,
a.internal-link:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Inline content links (within paragraphs) */
p .internal-link,
.tool-desc .internal-link,
.footer-tagline .internal-link {
    font-weight: 500;
    border-bottom: 1px dotted rgba(249, 115, 22, 0.4);
}

p .internal-link:hover,
.tool-desc .internal-link:hover,
.footer-tagline .internal-link:hover {
    border-bottom-style: solid;
    border-bottom-color: var(--primary);
}

/* Related tools section */
.related-tools {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(249, 115, 22, 0.05);
    border-left: 3px solid var(--primary);
    border-radius: 8px;
}

.related-tools h3 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.related-tools-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.related-tool-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 20px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.related-tool-link:hover {
    background: rgba(249, 115, 22, 0.2);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

.related-tool-link i {
    font-size: 0.875rem;
    color: var(--primary);
}