﻿/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* Prevent scroll jump on mobile */
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    /* Prevent layout shift */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==================== BACKGROUND CONTAINER ==================== */
.bg-container {
    background: url('../frame/images/background.jpg') center / cover no-repeat fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Prevent background image causing reflow */
    will-change: auto;
    background-color: #e8f5f4; /* Fallback color while image loads */
}

/* ==================== HEADER ==================== */
.header {
    width: 100%;
    position: relative;
    z-index: 999;
}

/* Mobile Header */
.header-mobile {
    display: block;
    text-align: center;
    padding: 10px 0;
    position: relative;
}

    .header-mobile .logo {
        margin: 0 auto;
    }

        .header-mobile .logo img {
            width: 100px;
            height: 32px;
        }

.menu-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

    .menu-toggle img {
        width: 23px;
        height: 23px;
    }

/* Mobile Menu Dropdown */
.mobile-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: #fff;
    border-radius: 8px 0 0 8px;
    box-shadow: 0 8px 15px rgba(1, 107, 105, 0.15);
    padding: 8px 0;
    text-align: right;
    list-style: none;
    z-index: 1000;
}

    .mobile-menu.show {
        display: block;
    }

    .mobile-menu li {
        cursor: pointer;
        color: #016B69;
        font-weight: 700;
        line-height: 1.2;
        text-transform: uppercase;
        font-size: 16px;
        padding: 16px 44px;
        transition: background 0.2s;
    }

        .mobile-menu li:hover {
            background: rgba(1, 107, 105, 0.1);
        }

        .mobile-menu li a {
            color: inherit;
            text-decoration: none !important;
            display: block;
        }

            .mobile-menu li a:visited {
                color: inherit;
            }

            .mobile-menu li a:hover {
                color: inherit;
                text-decoration: none;
            }

/* Desktop Header */
.header-desktop {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 40px 64px;
    margin-bottom: 20px;
}

    .header-desktop .logo img {
        width: 100px;
        height: 32px;
    }

.nav-menu {
    display: flex;
    gap: 60px;
    list-style: none;
}

    .nav-menu li {
        cursor: pointer;
        color: #016B69;
        font-weight: 700;
        line-height: 1.2;
        text-transform: uppercase;
        font-size: 18px;
        transition: opacity 0.2s;
    }

        .nav-menu li:hover {
            opacity: 0.8;
        }

        .nav-menu li a {
            color: inherit;
            text-decoration: none !important;
        }

            .nav-menu li a:visited {
                color: inherit;
            }

            .nav-menu li a:hover {
                color: inherit;
                text-decoration: none;
            }

/* ==================== MAIN CONTENT ==================== */
.main-content {
    flex: 1;
    padding: 0 16px;
    min-height: 570px;
}

.content-area {
    /* Placeholder for page-specific content */
}

/* ==================== FOOTER ==================== */
.footer {
    background: #016B69;
    color: #fff;
    text-align: center;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    margin-top: 60px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

    .footer-left img {
        width: 104px;
        height: 33px;
    }

    .footer-left span {
        font-size: 14px;
        font-weight: 500;
    }

.social-links {
    display: flex;
    gap: 16px;
    list-style: none;
    margin: 0 auto;
}

    .social-links a {
        display: block;
        transition: transform 0.2s, opacity 0.2s;
    }

        .social-links a:hover {
            transform: scale(1.1);
            opacity: 0.9;
        }

    .social-links img {
        width: 40px;
        height: 40px;
    }

/* ==================== FRAME DETAIL PAGE ==================== */

/* Frame Title */
.frame-title {
    text-align: center;
    color: #016B69;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 24px;
}

/* Frame Editor Container */
.frame-editor-container {
    margin: 0 auto;
    padding: 24px;
    border: 1px dashed #016B69;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.20);
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    position: relative;
    margin-bottom: 32px;
    width: 345px;
    max-width: calc(100% - 32px);
}

/* Frame Preview Area */
.frame-preview {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* Fixed height to prevent layout shift when switching canvas <-> combined */
    min-height: 295px;
}

/* Frame Canvas Wrapper */
.frame-canvas-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Fixed dimensions to prevent layout shift */
    width: 295px;
    height: 295px;
    margin: 0 auto;
}

    .frame-canvas-wrapper canvas {
        display: block;
        max-width: 100%;
        height: auto;
        border-radius: 15px;
        box-shadow: 0 4px 20px rgba(1, 107, 105, 0.30);
    }

/* Upload Overlay */
.upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    pointer-events: none;
}

.upload-content {
    text-align: center;
    color: #016B69;
}

    .upload-content p {
        font-size: 14px;
        margin-top: 8px;
    }

.frame-canvas {
    width: 295px;
    height: 295px;
    position: relative;
    margin: 0 auto;
}

.frame-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
    border-radius: 15px;
    overflow: hidden;
    width: 295px;
    height: 295px;
}

    .frame-overlay img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

/* Avatar */
.avatar-placeholder {
    width: 295px;
    height: 295px;
    border-radius: 15px;
    background: rgba(1, 107, 105, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #016B69;
    font-size: 14px;
    text-align: center;
}

.avatar-image {
    width: 295px;
    height: 295px;
    border-radius: 15px;
    object-fit: cover;
}

/* Loading Overlay */
.loading-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 60;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    width: 100%;
    height: 100%;
}

    .loading-overlay.show {
        display: flex;
    }

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #fff;
    border-top-color: #016B69;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile Warning */
.mobile-warning {
    display: flex;
    font-size: 14px;
    margin-top: 24px;
    border-radius: 8px;
    padding: 8px 10px;
    border: 1px solid #F00;
    background: #FFE7E7;
    color: #F00;
    align-items: flex-start;
}

    .mobile-warning img {
        margin-right: 8px;
        margin-top: 4px;
        width: 16px;
        height: 16px;
    }

/* Combined Image Wrapper (for long press download on mobile) */
.combined-image-wrapper {
    display: none;
    align-items: center;
    justify-content: center;
    /* Match canvas wrapper exactly */
    width: 295px;
    height: 295px;
    max-width: 100%;
    position: relative;
    margin: 0 auto;
}

    .combined-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 15px;
        box-shadow: 0 4px 20px rgba(1, 107, 105, 0.30);
    }

.long-press-hint {
    width: 175px;
    display: none;
    margin-top: 12px;
    padding: 8px 16px;
    background: #016B69;
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    animation: pulse 2s infinite;
    /* Position outside wrapper to not affect layout */
    position: absolute;
    top: 96%;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* Controls Wrapper */
.controls-wrapper {
    width: 100%;
}

/* Slider Controls */
.slider-control {
    width: 100%;
    display: flex;
    gap: 16px;
    align-items: center;
}

.control-btn {
    padding: 2px;
    color: #fff;
    border-radius: 4px;
    background: #016B69;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

    .control-btn:hover {
        opacity: 0.8;
    }

    .control-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .control-btn img {
        width: 16px;
        height: 16px;
    }

/* Custom Slider */
.slider-wrapper {
    flex: 1;
    position: relative;
    height: 4px;
}

.slider-track {
    position: absolute;
    width: 100%;
    height: 4px;
    background: #79C5C3;
    border-radius: 2px;
}

.slider-fill {
    position: absolute;
    height: 4px;
    background: #016B69;
    border-radius: 2px;
    width: 50%;
}

.slider-input {
    position: absolute;
    width: 100%;
    height: 4px;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.slider-thumb {
    position: absolute;
    width: 13px;
    height: 13px;
    background: #016B69;
    border-radius: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    left: 50%;
    pointer-events: none;
}

/* Action Buttons Row */
.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

.btn-flip {
    display: inline-flex;
    gap: 8px;
    padding: 8px;
    color: #fff;
    border-radius: 4px;
    background: #016B69;
    border: none;
    cursor: pointer;
    align-items: center;
    font-size: 14px;
    transition: opacity 0.2s;
}

    .btn-flip:hover {
        opacity: 0.8;
    }

    .btn-flip img {
        width: 16px;
        height: 16px;
    }

.btn-reselect {
    display: inline-flex;
    gap: 8px;
    padding: 8px;
    color: #016B69;
    border-radius: 4px;
    border: 1px solid #016B69;
    background: transparent;
    cursor: pointer;
    align-items: center;
    font-size: 14px;
    transition: all 0.2s;
}

    .btn-reselect:hover {
        background: rgba(1, 107, 105, 0.1);
    }

    .btn-reselect img {
        width: 16px;
        height: 16px;
    }

/* Error Message */
.error-message {
    color: #dc2626;
    font-size: 14px;
}

/* Main Action Buttons */
.main-buttons {
    margin-top: 24px;
    width: 100%;
    text-align: center;
    display: flex;
    gap: 24px;
}

.btn-back {
    flex: 1;
    border-radius: 16px;
    padding: 0 16px;
    height: 40px;
    color: #016B69;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    box-shadow: 2px 3px 0px 0px #FFC629;
    border: 2px solid #016B69;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
}

    .btn-back:hover {
        background: rgba(1, 107, 105, 0.1);
    }

.btn-primary-action {
    flex: 1;
    border-radius: 16px;
    padding: 0 16px;
    height: 40px;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    box-shadow: 2px 3px 0px 0px #FFC629;
    border: 2px solid #fff;
    color: #fff;
    background: #016B69;
    cursor: pointer;
    transition: opacity 0.2s;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .btn-primary-action:hover {
        opacity: 0.9;
    }

/* Share Link Box */
.share-box {
    width: 345px;
    max-width: calc(100% - 32px);
    margin: 0 auto;
    padding: 24px;
    border: 1px dashed #016B69;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.20);
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

    .share-box p {
        font-size: 14px;
        line-height: 1.2;
        color: #016B69;
    }

.share-input-group {
    display: flex;
    width: 100%;
    position: relative;
}

.share-input {
    border: 1px solid #000;
    outline: none;
    height: 48px;
    width: calc(100% - 48px);
    border-radius: 4px 0 0 4px;
    padding: 0 18px;
    font-size: 14px;
    background: #fff;
}

.copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid #000;
    border-left: none;
    border-radius: 0 4px 4px 0;
    background: #fff;
    cursor: pointer;
    transition: background 0.2s;
}

    .copy-btn:hover {
        background: #f5f5f5;
    }

    .copy-btn img {
        width: 16px;
        height: 16px;
    }

.copy-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
}

    .copy-tooltip.show {
        display: block;
    }

/* Hidden Elements */
.hidden-input {
    display: none;
}

/* ==================== UTILITY CLASSES ==================== */
.text-primary {
    color: #016B69;
}

.bg-primary {
    background-color: #016B69;
}

.font-bold {
    font-weight: 700;
}

.uppercase {
    text-transform: uppercase;
}

/* ==================== TABS ==================== */
.tabs-container {
    position: relative;
    padding: 0 16px;
    margin-bottom: 40px;
}

.tabs-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    opacity: 0.6;
    color: #016B69;
    padding: 8px;
    z-index: 10;
}

    .tabs-nav-btn:hover {
        opacity: 1;
    }

    .tabs-nav-btn.prev {
        left: 4px;
    }

    .tabs-nav-btn.next {
        right: 4px;
    }

.tabs-scroll {
    display: flex;
    overflow-x: auto;
    padding: 0 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .tabs-scroll::-webkit-scrollbar {
        display: none;
    }

.tabs-list {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 15px 0;
    background: transparent;
}

.tab-item {
    padding: 8px 16px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(1, 107, 105, 0.20);
    white-space: nowrap;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.5;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    color: #016B69;
    background: #fff;
    border: none;
}

    .tab-item:hover {
        box-shadow: 0 4px 20px rgba(1, 107, 105, 0.30);
    }

    .tab-item.active {
        background: #016B69;
        color: #fff;
        box-shadow: 2px 3px 0 0 #FFC629;
        border: 2px solid #fff;
    }

/* ==================== FRAME LIST ==================== */
.frame-list-container {
    min-height: 500px;
}

/* First Tag Section (Featured) */
.tag-section-featured {
    margin-bottom: 0;
    padding-bottom: 40px;
}

    .tag-section-featured .tag-title {
        margin-bottom: 24px;
        color: #016B69;
        font-size: 20px;
        font-weight: 700;
        line-height: 1.25;
        text-transform: uppercase;
    }

    .tag-section-featured .frames-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }

    .tag-section-featured .frame-item {
        width: 160px;
        height: 160px;
        border-radius: 50%;
        box-shadow: 0 2px 10px rgba(1, 107, 105, 0.30);
        overflow: hidden;
        cursor: pointer;
        transition: transform 0.2s, box-shadow 0.2s;
    }

        .tag-section-featured .frame-item:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 20px rgba(1, 107, 105, 0.40);
        }

        .tag-section-featured .frame-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
        }

/* Other Tags Grid */
.tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    width: 100%;
}

.tag-section {
    width: 100%;
    border-top: 1px solid rgba(1, 107, 105, 0.20);
    padding: 10px 0;
}

    .tag-section .tag-title {
        margin-bottom: 20px;
        color: #016B69;
        font-size: 20px;
        font-weight: 700;
        line-height: 1.25;
        text-transform: uppercase;
    }

    .tag-section .frames-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }

    .tag-section .frame-item {
        width: 132px;
        height: 132px;
        border-radius: 50%;
        box-shadow: 0 4px 15px rgba(1, 107, 105, 0.30);
        overflow: hidden;
        cursor: pointer;
        transition: transform 0.2s, box-shadow 0.2s;
        /* Prevent layout shift */
        aspect-ratio: 1 / 1;
        background-color: rgba(1, 107, 105, 0.1);
    }

        .tag-section .frame-item:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 20px rgba(1, 107, 105, 0.40);
        }

        .tag-section .frame-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
        }

.frame-item-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

    .frame-item-wrapper:hover .frame-item {
        transform: scale(1.05);
        box-shadow: 0 4px 20px rgba(1, 107, 105, 0.40);
    }

.frame-name {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #016B69;
    text-align: center;
    max-width: 132px;
    line-height: 1.3;
    word-wrap: break-word;
}

/* Loading Spinner */
.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 570px;
    width: 100%;
}

/* ==================== CONTENT PAGE (Terms, Guide, Contact) ==================== */
.content-page {
    max-width: 1258px;
    margin: 0 auto;
    padding: 24px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(1, 107, 105, 0.15);
}

.content-page-title {
    margin-bottom: 24px;
    color: #016B69;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.content-page-body {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

    .content-page-body p {
        margin-bottom: 16px;
    }

    .content-page-body ul {
        list-style: none;
        padding: 0;
        margin: 16px 0;
    }

        .content-page-body ul li {
            margin-bottom: 12px;
            padding-left: 0;
        }

    /* Terms page - numbered list */
    .content-page-body.terms-content ul li {
        margin-bottom: 16px;
    }

    /* Guide page - bullet list */
    .content-page-body.guide-content ul li {
        padding-left: 20px;
        position: relative;
    }

        .content-page-body.guide-content ul li::before {
            content: '';
            position: absolute;
            left: 5px;
            top: 10px;
            width: 4px;
            height: 4px;
            background: #000;
            border-radius: 50%;
        }

    /* Contact page */
    .content-page-body.contact-content p {
        margin-bottom: 12px;
    }

    .content-page-body.contact-content a {
        color: #016B69;
        text-decoration: none;
        font-weight: 500;
    }

        .content-page-body.contact-content a:hover {
            text-decoration: underline;
        }

/* Back button */
.btn-back-page {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 12px 24px;
    color: #016B69;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid #016B69;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
}

    .btn-back-page:hover {
        background: #016B69;
        color: #fff;
    }

/* ==================== RESPONSIVE ==================== */

/* Extra small screens (under 360px) */
@media (max-width: 359px) {
    .frame-editor-container {
        width: 100%;
        max-width: 100%;
        padding: 16px;
        margin-left: 8px;
        margin-right: 8px;
    }

    .frame-canvas-wrapper {
        width: 100%;
        max-width: 260px;
        height: auto;
        aspect-ratio: 1 / 1;
    }

        .frame-canvas-wrapper canvas {
            width: 100% !important;
            height: auto !important;
            aspect-ratio: 1 / 1;
        }

    .frame-canvas,
    .frame-overlay,
    .avatar-placeholder,
    .avatar-image {
        width: 100%;
        max-width: 260px;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .combined-image-wrapper {
        width: 100%;
        max-width: 260px;
    }

    .share-box {
        width: 100%;
        max-width: 100%;
        margin-left: 8px;
        margin-right: 8px;
    }

    .main-buttons {
        gap: 12px;
    }

    .btn-back,
    .btn-primary-action {
        padding: 0 12px;
        font-size: 8px;
    }

    .action-row {
        gap: 6px;
    }

    .btn-flip,
    .btn-reselect {
        padding: 6px;
        font-size: 12px;
    }
}

@media (min-width: 768px) {
    .frame-title {
        font-size: 32px;
    }

    .frame-editor-container {
        padding: 40px;
        width: 530px;
    }

    .frame-canvas,
    .frame-overlay,
    .avatar-placeholder,
    .avatar-image {
        width: 450px;
        height: 450px;
    }

    .frame-canvas-wrapper {
        width: 450px;
        height: 450px;
    }

    .main-buttons {
        gap: 40px;
    }

    .btn-back,
    .btn-primary-action {
        font-size: 20px;
    }

    .share-box {
        width: 530px;
    }

    .mobile-warning {
        display: none;
    }

    .combined-image-wrapper {
        width: 450px;
    }
}

@media (min-width: 1024px) {
    .header-mobile {
        display: none;
    }

    .header-desktop {
        display: flex;
    }

    .main-content {
        padding: 0 64px;
    }

    .footer {
        flex-direction: row;
        padding: 16px 64px;
    }

    .footer-left {
        flex-direction: row;
    }

    .social-links {
        margin: 0;
    }

    /* Tabs Desktop */
    .tabs-container {
        padding: 0 64px;
    }

    .tabs-nav-btn {
        font-size: 30px;
    }

        .tabs-nav-btn.prev {
            left: 20px;
        }

        .tabs-nav-btn.next {
            right: 20px;
        }

    .tabs-list {
        gap: 24px;
    }

    .tab-item {
        padding: 16px;
        font-size: 16px;
    }

    /* Frame List Desktop */
    .tag-section-featured {
        margin-bottom: 40px;
        border-bottom: 1px solid rgba(1, 107, 105, 0.20);
    }

        .tag-section-featured .tag-title {
            font-size: 32px;
        }

        .tag-section-featured .frames-grid {
            gap: 60px;
        }

        .tag-section-featured .frame-item {
            width: 300px;
            height: 300px;
            box-shadow: 0 4px 15px rgba(1, 107, 105, 0.30);
        }

    .tags-grid {
        gap: 0;
    }

    .tag-section {
        width: 100%;
        padding: 24px 0;
        margin-top: 0;
        border-top: 2px solid rgba(1, 107, 105, 0.15);
    }

        .tag-section:first-child {
            padding-top: 0;
            border-top: none;
        }

        .tag-section .tag-title {
            margin-bottom: 32px;
            font-size: 24px;
        }

        .tag-section .frames-grid {
            gap: 40px;
        }

        .tag-section .frame-item {
            width: 150px;
            height: 150px;
        }

    .frame-name {
        font-size: 14px;
        max-width: 150px;
    }
}
