@charset "UTF-8";

/* ==========================================================================
   Tool Common Styles (공통 마이크로 툴 스타일)
   ========================================================================== */
.convert-page {
    padding: 160px 0 80px;
    background-color: #f8fafc;
    min-height: 80vh;
}

.convert-page .container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.convert-topbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0 26px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 30px;
}

.convert-topbar__main {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.convert-topbar__icon {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: #ffffff;
    color: #4f46e5;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.12);
    border: 1px solid #e0e7ff;
}

.convert-topbar__copy h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.convert-topbar__copy p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.5;
}

.convert-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 6px;
}

.convert-breadcrumb .sep {
    font-size: 11px;
}

.convert-tags {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

.convert-tags span {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 20px;
    background: #eef2ff;
    color: #4338ca;
    font-weight: 600;
}

.convert-topbar__meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.meta-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 30px;
    background: #fff;
    border: 1px solid #e2e8f0;
    font-size: 13px;
    color: #475569;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.meta-pill i {
    color: #10b981;
}


/* ==========================================================================
   Index Dashboard Styles (index.php 대시보드 스타일)
   ========================================================================== */
.tool-dashboard-section {
    padding: 160px 0 90px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: 85vh;
}

.tool-dashboard-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.tool-dashboard-hero {
    text-align: center;
    margin-bottom: 45px;
}

.tool-dashboard-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(79, 70, 229, 0.08);
    color: #4f46e5;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid rgba(79, 70, 229, 0.15);
}

.tool-dashboard-hero .hero-title {
    font-size: 36px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.8px;
    margin: 0 0 12px 0;
}

.tool-dashboard-hero .hero-subtitle {
    font-size: 17px;
    color: #64748b;
    max-width: 680px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.hero-search-box {
    position: relative;
    max-width: 580px;
    margin: 0 auto 28px;
}

.hero-search-box .search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 18px;
}

.hero-search-box input {
    width: 100%;
    padding: 16px 20px 16px 52px;
    font-size: 15px;
    border-radius: 16px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
    outline: none;
    transition: all 0.2s ease;
}

.hero-search-box input:focus {
    border-color: #4f46e5;
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.15);
}

.tool-filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tab:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
}

.filter-tab.active {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.tool-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.tool-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    padding: 24px;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-6px);
    border-color: #c7d2fe;
    box-shadow: 0 20px 35px rgba(79, 70, 229, 0.12);
}

.tool-card .card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #f0f4ff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 18px;
    transition: all 0.3s ease;
}

.tool-card:hover .card-icon {
    background: #4f46e5;
    color: #ffffff;
    transform: scale(1.05);
}

.tool-card .card-body {
    flex: 1;
}

.tool-card .card-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.tool-card .card-tags .tag {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #64748b;
}

.tool-card h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.3px;
}

.tool-card p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.55;
}

.tool-card .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px dashed #f1f5f9;
    font-size: 13px;
    font-weight: 600;
    color: #4f46e5;
}

.tool-card .card-footer i {
    transition: transform 0.2s ease;
}

.tool-card:hover .card-footer i {
    transform: translateX(4px);
}


/* ==========================================================================
   Image Resize Tool (image_resize.php 스타일)
   ========================================================================== */
#img_resize .convert-workspace {
    margin-top: 20px;
}


/* ==========================================================================
   Image Crop Tool (image_crop.php 스타일)
   ========================================================================== */
#img_crop .crop-container {
    margin-top: 20px;
}


/* ==========================================================================
   Image Format Convert Tool (image_convert.php / image_convert_local.php 스타일)
   ========================================================================== */
#img_convert .convert-editor,
#img_convert_local .convert-editor {
    border-radius: 16px;
}


/* ==========================================================================
   QR Code Generator Tool (qr_code.php 스타일)
   ========================================================================== */
#qr_code .qr-preview-card {
    border-radius: 16px;
}


/* ==========================================================================
   Responsive Utilities (반응형 모바일 스타일)
   ========================================================================== */
@media (max-width: 768px) {
    .convert-page,
    .tool-dashboard-section {
        padding-top: 120px;
    }

    .convert-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .tool-dashboard-hero .hero-title {
        font-size: 26px;
    }

    .tool-cards-grid {
        grid-template-columns: 1fr;
    }
}
