/* ============================================
   TOOL PAGE STYLES
   ============================================ */

/* Tool Hero */
.tool-hero {
    background: linear-gradient(160deg, #0A7C6E 0%, #086356 100%);
    padding: 40px 0;
}

.tool-hero-content {
    text-align: center;
    color: var(--white);
}

.tool-hero-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.tool-hero-content h1 {
    color: var(--white);
    font-size: 32px;
    margin-bottom: 8px;
}

.tool-hero-content p {
    color: rgba(255,255,255,0.85);
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto;
}

/* Tool Workspace */
.tool-workspace {
    background: var(--background);
}

.tool-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.tool-panel {
    background: var(--white);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.panel-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
}

.panel-header h2 {
    font-size: 18px;
    margin-bottom: 0;
}

/* Upload Area */
.upload-area {
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.upload-area:hover {
    background: var(--gray-50);
}

.upload-area.dragover {
    background: var(--primary-light);
    border: 2px dashed var(--primary);
}

.upload-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.upload-placeholder h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.upload-placeholder p {
    color: var(--gray-500);
    margin-bottom: 4px;
}

.upload-formats {
    font-size: 12px;
    color: var(--gray-400);
}

.upload-area img {
    max-width: 100%;
    max-height: 350px;
    border-radius: 8px;
}

/* Settings */
.tool-settings {
    padding: 0;
}

.tool-settings .panel-header {
    background: var(--gray-50);
}

.settings-group {
    padding: 12px 20px;
}

.setting-label {
    display: block;
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    color: var(--gray-700);
    margin-bottom: 6px;
}

.setting-input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-family: var(--font-family);
    font-size: 14px;
    outline: none;
    transition: border 0.2s;
}

.setting-input:focus {
    border-color: var(--primary);
}

.setting-color {
    width: 60px;
    height: 40px;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    cursor: pointer;
}

.setting-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.setting-checkbox input {
    width: 16px;
    height: 16px;
}

.btn-full {
    width: calc(100% - 40px);
    margin: 8px 20px;
    justify-content: center;
    height: 44px;
}

/* Steps */
.how-to-section {
    background: var(--white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.step-card {
    text-align: center;
    padding: 24px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: var(--font-weight-bold);
    margin: 0 auto 12px;
}

.step-card h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.step-card p {
    font-size: 14px;
    color: var(--gray-500);
}

/* Features */
.features-section {
    background: var(--background);
}

.tool-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 700px;
    margin: 0 auto;
}

.tool-feature-item {
    padding: 12px 16px;
    background: var(--white);
    border-radius: 10px;
    font-size: 14px;
}

.tool-feature-item span {
    margin-right: 6px;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .tool-container {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .tool-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}