/* =========================================
   1. GLOBAL VARIABLES & 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;
    --success-color: #22c55e;
}

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

/* 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 {
    background: var(--primary);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
}

.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 */
.collage-preview-wrapper {
    max-width: 100%;
    max-height: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.collage-image {
    max-height: 500px;
    /* Fixed height constraint */
    max-width: 100%;
    object-fit: contain;
    display: block;
}

/* Responsive adjustment for smaller screens */
@media (max-height: 800px) {
    .collage-image {
        max-height: 350px;
    }
}

/* =========================================
   4. EXIF LIST STYLES
   ========================================= */
.exif-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.exif-category {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.exif-category-header {
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.exif-category-header:hover {
    background: rgba(255, 255, 255, 0.08);
}

.category-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.9rem;
}

.category-icon {
    color: var(--primary);
    transition: transform 0.3s;
}

.exif-category-content {
    padding: 8px;
    display: block;
}

.exif-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    margin-bottom: 4px;
    font-size: 0.85rem;
}

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

.exif-key {
    color: var(--text-muted);
    font-weight: 500;
}

.exif-value {
    color: var(--text-main);
    text-align: right;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 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 */
.panel-divider {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

/* Info Card Small - For displaying information boxes */
.info-card-small {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.info-card-small:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.info-card-small i {
    display: block;
    margin-bottom: 8px;
}

.info-card-small p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-main);
}

.info-card-small strong {
    color: var(--text-main);
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
}

/* Empty state box */
.info-box-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    opacity: 0.7;
}

.info-box-empty i {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
    color: rgba(255, 255, 255, 0.2);
}

.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;
}

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

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-danger {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
}

.cost-indicator {
    font-size: 0.85rem;
    color: #ffd700;
    text-align: center;
    margin-bottom: 12px;
    font-weight: 600;
}

.cost-indicator i {
    margin-right: 4px;
}

/* Modal */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-modal-content {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    border: 1px solid var(--border-color);
}

.modal-icon-wrapper {
    font-size: 2rem;
    color: #F59E0B;
    margin-bottom: 15px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

/* Loading Overlay (Fixed Centering) */
.progress-container-floating {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    padding: 20px 40px;
    /* More padding for better look */
    border-radius: 12px;
    text-align: center;
    z-index: 100;
    /* Higher Z-Index to sit above image */
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    min-width: 200px;
}

.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;
}

.progress-text {
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

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

/* =========================================
   RESPONSIVE MEDIA QUERIES - EXIF 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;
    }

    .collage-image {
        max-height: 300px !important;
    }

    /* 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,
    .badge-pro {
        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;
    }

    /* Info Cards */
    .info-card-small {
        padding: 12px;
        border-radius: 8px;
        margin-top: 10px;
    }

    .info-card-small i {
        font-size: 1rem !important;
        margin-bottom: 6px !important;
    }

    .info-card-small p {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .info-card-small strong {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }

    /* EXIF List Categories */
    .exif-list {
        gap: 10px;
    }

    .exif-category {
        border-radius: 6px;
    }

    .exif-category-header {
        padding: 10px 12px;
    }

    .category-title {
        font-size: 0.85rem;
        gap: 6px;
    }

    .category-icon {
        font-size: 0.75rem;
    }

    .category-count {
        font-size: 0.7rem !important;
    }

    .exif-category-content {
        padding: 6px;
    }

    .exif-item {
        padding: 7px 10px;
        border-radius: 5px;
        margin-bottom: 3px;
        font-size: 0.8rem;
        flex-wrap: wrap;
        gap: 6px;
    }

    .exif-key {
        font-size: 0.8rem;
    }

    .exif-value {
        font-size: 0.8rem;
        max-width: 140px;
    }

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

    .btn-text {
        font-size: 0.85rem !important;
        padding: 8px !important;
    }

    #downloadBtn {
        padding: 11px;
        font-size: 0.9rem;
        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;
    }

    /* Cost Indicator */
    .cost-indicator {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }

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

    /* Modal */
    .custom-modal-content {
        padding: 25px 20px;
        max-width: 90%;
        border-radius: 10px;
    }

    .modal-icon-wrapper {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }

    .custom-modal-content h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .custom-modal-content p {
        font-size: 0.85rem;
        margin-bottom: 16px;
    }

    .modal-actions {
        flex-direction: column;
        gap: 8px;
        margin-top: 16px;
    }

    .modal-actions button {
        width: 100%;
        padding: 10px;
    }

    /* Action Area */
    #actionArea {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}

/* 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;
    }

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

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

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

    .badge,
    .badge-pro {
        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;
    }

    .info-card-small {
        padding: 10px;
        border-radius: 6px;
        margin-top: 8px;
    }

    .info-card-small i {
        font-size: 0.95rem !important;
        margin-bottom: 5px !important;
    }

    .info-card-small p {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .info-card-small strong {
        font-size: 0.8rem;
        margin-bottom: 5px;
    }

    .exif-list {
        gap: 8px;
    }

    .exif-category {
        border-radius: 5px;
    }

    .exif-category-header {
        padding: 9px 10px;
    }

    .category-title {
        font-size: 0.8rem;
        gap: 5px;
    }

    .category-icon {
        font-size: 0.7rem;
    }

    .category-count {
        font-size: 0.65rem !important;
    }

    .exif-category-content {
        padding: 5px;
    }

    .exif-item {
        padding: 6px 8px;
        border-radius: 4px;
        margin-bottom: 2px;
        font-size: 0.75rem;
        gap: 5px;
    }

    .exif-key {
        font-size: 0.75rem;
    }

    .exif-value {
        font-size: 0.75rem;
        max-width: 120px;
    }

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

    .btn-text {
        font-size: 0.8rem !important;
        padding: 6px !important;
    }

    #downloadBtn {
        padding: 10px;
        font-size: 0.85rem;
        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;
    }

    .cost-indicator {
        font-size: 0.75rem;
        margin-bottom: 8px;
    }

    .upload-area-large .cost-indicator {
        font-size: 0.8rem !important;
        margin-top: 10px !important;
        margin-bottom: 6px !important;
    }

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

    .custom-modal-content {
        padding: 20px 16px;
        border-radius: 8px;
    }

    .modal-icon-wrapper {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }

    .custom-modal-content h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .custom-modal-content p {
        font-size: 0.8rem;
        margin-bottom: 14px;
    }

    .modal-actions {
        gap: 6px;
        margin-top: 14px;
    }

    .modal-actions button {
        padding: 9px;
        font-size: 0.85rem;
    }

    #actionArea {
        gap: 8px;
    }
}

/* 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;
    }

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

    .panel-content {
        padding: 18px;
    }

    .panel-footer {
        padding: 18px;
    }

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

    .info-card-small {
        padding: 14px;
    }

    .exif-category-header {
        padding: 11px 14px;
    }

    .exif-item {
        padding: 8px 12px;
    }

    .exif-value {
        max-width: 180px;
    }
}

/* Medium Tablets (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .studio-wrapper {
        grid-template-columns: 280px 1fr 280px;
        gap: 14px;
        padding: 0 16px 16px 16px;
        margin-top: 90px;
    }

    .panel-content {
        padding: 18px;
    }

    .panel-footer {
        padding: 18px;
    }

    .canvas-container {
        padding: 30px;
    }

    .collage-image {
        max-height: 450px !important;
    }

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

    .info-card-small {
        padding: 14px;
    }

    .exif-value {
        max-width: 140px;
    }
}


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

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

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

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

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

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

/* Ad Section Positioning - Bottom of Page */
.ads-section {
    width: 100%;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}

.ad-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

@media (max-width: 768px) {
    .ads-section {
        padding: 30px 16px;
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    .ads-section {
        padding: 20px 12px;
        margin-top: 20px;
    }
}

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

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

/* Scrollbar Styling for EXIF List on Mobile */
@media (max-width: 768px) {
    .exif-list {
        max-height: none;
        /* Allow natural expansion */
    }

    .panel-content {
        max-height: 70vh;
        /* Limit panel height */
    }
}

/* Touch-Friendly Accordion */
@media (hover: none) and (pointer: coarse) {
    .exif-category-header {
        min-height: 44px;
        /* iOS touch target guideline */
        padding: 12px 14px;
    }

    .exif-item {
        min-height: 40px;
        align-items: center;
    }
}

/* EXIF Value Word Break on Small Screens */
@media (max-width: 480px) {
    .exif-value {
        word-break: break-word;
        white-space: normal;
        text-align: right;
    }
}

/* Improved Modal Accessibility on Mobile */
@media (max-width: 480px) {
    .custom-modal-overlay {
        padding: 20px;
    }

    .custom-modal-content {
        max-width: 100%;
        width: 100%;
    }
}

/* Better Button Spacing in Action Area */
@media (max-width: 480px) {
    #actionArea .btn-full {
        margin-bottom: 8px;
    }

    #actionArea .btn-text {
        margin-top: 4px !important;
    }
}

/* =========================================
   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);
}