* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0000 100%);
    color: #ffffff;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ff0000;
}

h1 {
    color: #ff0000;
    font-size: 2.5em;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.help-btn {
    background: #ff0000;
    color: #000;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.help-btn:hover {
    background: #cc0000;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
}

.upload-section {
    margin-bottom: 30px;
}

#fileInput {
    display: none;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    border: 3px dashed #ff0000;
    border-radius: 10px;
    background: rgba(255, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s;
}

.upload-label:hover {
    background: rgba(255, 0, 0, 0.15);
    border-color: #ff3333;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.3);
}

.upload-icon {
    font-size: 4em;
    margin-bottom: 15px;
}

.upload-label span {
    display: block;
    text-align: center;
}

.upload-label span:nth-child(2) {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.upload-hint {
    font-size: 0.9em;
    color: #999;
}

.results {
    margin-bottom: 30px;
}

.image-result {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #ff0000;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.2);
}

.image-result h3 {
    color: #ff0000;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.metadata-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
}

.metadata-item {
    background: rgba(255, 0, 0, 0.1);
    padding: 10px;
    border-radius: 5px;
    border-left: 3px solid #ff0000;
}

.metadata-item strong {
    color: #ff6666;
    display: inline-block;
    min-width: 150px;
}

.download-btn {
    background: #ff0000;
    color: #000;
    border: none;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
    margin: 0 auto;
}

.download-btn:hover {
    background: #cc0000;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.8);
    transform: translateY(-2px);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a0000 100%);
    margin: 5% auto;
    padding: 30px;
    border: 2px solid #ff0000;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 0 50px rgba(255, 0, 0, 0.5);
}

.close {
    color: #ff0000;
    float: right;
    font-size: 2em;
    font-weight: bold;
    cursor: pointer;
    line-height: 0.8;
}

.close:hover {
    color: #ff3333;
}

.modal-content h2 {
    color: #ff0000;
    margin-bottom: 20px;
}

.modal-content ol {
    margin-left: 20px;
    line-height: 1.8;
}

.modal-content ul {
    margin-left: 40px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.modal-content li {
    margin-bottom: 15px;
}

.note {
    background: rgba(255, 0, 0, 0.1);
    padding: 15px;
    border-left: 4px solid #ff0000;
    margin-top: 20px;
    border-radius: 5px;
}

.note code {
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #ff6666;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.8em;
    }

    .upload-label {
        padding: 40px 15px;
    }

    .metadata-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 10% auto;
        padding: 20px;
    }
}
