/* Photo Tool Styles */

.photo-tool-section {
    padding: 100px 0 80px;
    min-height: 100vh;
    background: var(--light-bg);
}

.photo-tool-section h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.photo-tool-section .subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
}

.tool-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    padding: 3rem;
}

/* Step labels */
.step-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.step-label .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Upload zone */
.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: 15px;
    padding: 4rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
}

.upload-zone:hover {
    border-color: var(--primary-color);
}

.upload-zone.drag-over {
    border-color: var(--primary-color);
    background: #FEF3E6;
}

.upload-zone i.upload-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.upload-zone p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.upload-zone .upload-hint {
    font-size: 0.85rem;
    color: var(--text-light);
}

.upload-zone input[type="file"] {
    display: none;
}

.selfie-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    background: white;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.selfie-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Editor section */
.editor-section {
    display: none;
    margin-top: 2rem;
}

.editor-section.active {
    display: block;
}

.editor-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

/* Canvas container */
.canvas-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 1rem;
    min-height: 350px;
}

#photoCanvas {
    max-width: 100%;
    cursor: grab;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#photoCanvas:active {
    cursor: grabbing;
}

/* Controls panel */
.controls-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.controls-panel h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

/* Preset grid */
.preset-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.preset-btn {
    padding: 0.6rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-size: 0.85rem;
    text-align: center;
    transition: border-color 0.3s, background 0.3s, color 0.3s;
    color: var(--text-dark);
}

.preset-btn:hover {
    border-color: var(--primary-color);
}

.preset-btn.active {
    border-color: var(--primary-color);
    background: #FEF3E6;
    color: var(--primary-color);
    font-weight: 600;
}

.preset-btn .preset-size {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 2px;
}

.preset-btn.active .preset-size {
    color: var(--primary-color);
}

/* Zoom control */
.zoom-control {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.zoom-control label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
    white-space: nowrap;
}

.zoom-control input[type="range"] {
    flex: 1;
    accent-color: var(--primary-color);
}

.zoom-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    min-width: 40px;
    text-align: right;
}

/* Validation list */
.validation-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.validation-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    background: var(--light-bg);
}

.validation-item i {
    font-size: 1rem;
    flex-shrink: 0;
}

.validation-item.pass {
    color: #059669;
}

.validation-item.pass i {
    color: #10b981;
}

.validation-item.fail {
    color: #dc2626;
}

.validation-item.fail i {
    color: #ef4444;
}

.validation-item.review {
    color: #d97706;
}

.validation-item.review i {
    color: #f59e0b;
}

/* Download section */
.download-section {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 15px;
}

.download-section .size-info {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 3rem;
    border: none;
    border-radius: 10px;
    background: var(--primary-color);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.download-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.download-btn:disabled {
    background: var(--border-color);
    cursor: not-allowed;
    transform: none;
}

/* Requirements accordion */
.requirements-section {
    margin-top: 3rem;
}

.requirements-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: white;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-dark);
    transition: background 0.3s;
}

.accordion-header:hover {
    background: var(--light-bg);
}

.accordion-header i {
    transition: transform 0.3s;
    color: var(--text-light);
}

.accordion-item.open .accordion-header i {
    transform: rotate(180deg);
}

.accordion-body {
    display: none;
    padding: 0 1.25rem 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}

.accordion-item.open .accordion-body {
    display: block;
}

.accordion-body ul {
    list-style: disc;
    padding-left: 1.25rem;
    margin-top: 0.5rem;
}

.accordion-body ul li {
    margin-bottom: 0.25rem;
}

/* Selfie modal */
.selfie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.selfie-modal.active {
    display: flex;
}

.selfie-modal-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.selfie-modal-content video {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 1rem;
    background: #000;
}

.selfie-modal-content .selfie-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.selfie-modal-content .selfie-actions button {
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.selfie-capture-btn {
    background: var(--primary-color);
    color: white;
}

.selfie-capture-btn:hover {
    background: var(--primary-dark);
}

.selfie-cancel-btn {
    background: var(--border-color);
    color: var(--text-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .photo-tool-section {
        padding: 80px 0 60px;
    }

    .photo-tool-section h1 {
        font-size: 1.75rem;
    }

    .tool-container {
        padding: 1.5rem;
        margin: 0 1rem;
        border-radius: 15px;
    }

    .editor-layout {
        grid-template-columns: 1fr;
    }

    .upload-zone {
        padding: 2.5rem 1.5rem;
    }

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

    .download-btn {
        padding: 0.85rem 2rem;
        font-size: 1rem;
    }
}
