/* ============================================
   IMAGE METADATA VIEWER TOOL - STYLES
   Location: assets/css/image-metadata-viewer.css
   ============================================ */

/* ============================================
   UPLOAD SECTION
   ============================================ */

.upload-section {
    margin: 2rem 0;
}

.upload-area {
    border: 3px dashed rgba(0, 255, 0, 0.3);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    background: rgba(0, 20, 0, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.upload-area:hover {
    border-color: rgba(0, 255, 0, 0.6);
    background: rgba(0, 30, 0, 0.6);
    transform: translateY(-2px);
}

.upload-area.drag-over {
    border-color: #0f0;
    background: rgba(0, 50, 0, 0.8);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.upload-area.has-file {
    border-color: #0ff;
    background: rgba(0, 40, 40, 0.5);
}

.upload-content {
    position: relative;
    z-index: 1;
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.upload-area h3 {
    color: #0f0;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.upload-area p {
    color: #0ff;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.upload-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(0, 20, 0, 0.3);
    border-radius: 6px;
}

#file-info {
    color: #0ff;
    font-size: 0.9rem;
}

/* ============================================
   IMAGE PREVIEW SECTION
   ============================================ */

.preview-section {
    margin: 2rem 0;
    animation: slideIn 0.5s ease-out;
}

.preview-container {
    position: relative;
    background: rgba(0, 20, 0, 0.5);
    border: 2px solid rgba(0, 255, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

#preview-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 500px;
    object-fit: contain;
}

.preview-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 1.5rem;
}

.preview-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.preview-info span {
    color: #0ff;
    font-size: 0.9rem;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

/* ============================================
   METADATA SECTION
   ============================================ */

.metadata-section {
    margin: 2rem 0;
    animation: slideIn 0.5s ease-out;
}

.metadata-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.metadata-actions {
    display: flex;
    gap: 0.75rem;
}

/* Metadata Tabs */
.metadata-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: rgba(0, 20, 0, 0.3);
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 0, 0.2);
}

.tab-btn {
    flex: 1;
    min-width: 100px;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.5);
    color: #0ff;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tab-btn:hover {
    background: rgba(0, 40, 40, 0.7);
    border-color: #0ff;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, rgba(0, 100, 100, 0.4), rgba(0, 50, 50, 0.4));
    border-color: #0f0;
    color: #0f0;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.tab-btn:hover::before {
    left: 100%;
}

/* Tab Content */
.metadata-content {
    background: rgba(0, 20, 0, 0.4);
    border: 2px solid rgba(0, 255, 0, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    min-height: 300px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

/* Metadata Grid */
.metadata-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.metadata-item {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.metadata-item:hover {
    border-color: #0ff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
    transform: translateY(-2px);
}

.metadata-label {
    display: block;
    color: #0ff;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.metadata-value {
    display: block;
    color: #0f0;
    font-size: 1.1rem;
    word-break: break-word;
    font-weight: 500;
}

.metadata-value.long-text {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* GPS Warning */
.gps-warning {
    background: rgba(255, 150, 0, 0.1);
    border: 2px solid rgba(255, 150, 0, 0.4);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.warning-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.gps-warning p {
    color: #ff9600;
    margin: 0;
    line-height: 1.6;
}

#gps-data {
    display: grid;
    gap: 1rem;
}

.gps-coordinates {
    background: rgba(0, 50, 50, 0.3);
    border: 2px solid rgba(0, 255, 255, 0.4);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.gps-coordinates h4 {
    color: #0ff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.coord-display {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.coord-item {
    text-align: center;
}

.coord-label {
    display: block;
    color: #0ff;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.coord-value {
    display: block;
    color: #0f0;
    font-size: 1.3rem;
    font-weight: 600;
}

.map-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 100, 100, 0.3);
    color: #0ff;
    text-decoration: none;
    border: 1px solid #0ff;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.map-link:hover {
    background: rgba(0, 150, 150, 0.5);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Metadata Summary */
.metadata-summary {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(0, 30, 0, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.summary-item {
    text-align: center;
}

.summary-label {
    display: block;
    color: #0ff;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.summary-value {
    display: block;
    color: #0f0;
    font-size: 1.5rem;
    font-weight: 700;
}

/* ============================================
   INFO PANEL - EDUCATIONAL CONTENT
   ============================================ */

.metadata-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.type-card {
    background: rgba(0, 20, 0, 0.4);
    border: 2px solid rgba(0, 255, 0, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.type-card:hover {
    border-color: #0ff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
    transform: translateY(-4px);
}

.type-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.type-card h4 {
    color: #0f0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.type-card p {
    color: #0ff;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.type-card ul {
    list-style: none;
    padding-left: 0;
}

.type-card li {
    color: #0ff;
    padding: 0.25rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.type-card li::before {
    content: '▸';
    color: #0f0;
    position: absolute;
    left: 0;
}

.privacy-warning {
    background: rgba(255, 150, 0, 0.1);
    border-left: 3px solid #ff9600;
    padding: 0.75rem;
    margin-top: 1rem;
    border-radius: 4px;
}

.privacy-warning strong {
    color: #ff9600;
}

/* EXIF Glossary */
.exif-glossary {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

.glossary-item {
    background: rgba(0, 20, 0, 0.3);
    border-left: 3px solid #0f0;
    padding: 1rem;
    border-radius: 4px;
}

.glossary-item strong {
    color: #0ff;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.glossary-item p {
    color: #0f0;
    margin: 0;
    line-height: 1.6;
}

/* Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.tip-card {
    background: rgba(0, 30, 30, 0.4);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.tip-card:hover {
    border-color: #0ff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
    transform: translateY(-4px);
}

.tip-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tip-card h4 {
    color: #0f0;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.tip-card p {
    color: #0ff;
    line-height: 1.6;
    margin: 0;
}

/* Technical Info */
.technical-info {
    background: rgba(0, 20, 0, 0.4);
    border: 2px solid rgba(0, 255, 0, 0.3);
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
}

.technical-info h4 {
    color: #0f0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.technical-info p {
    color: #0ff;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.technical-info ol {
    color: #0ff;
    line-height: 1.8;
    padding-left: 2rem;
}

.technical-info ul {
    list-style: none;
    padding-left: 0;
}

.technical-info li {
    color: #0ff;
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
}

.technical-info li::before {
    content: '▸';
    color: #0f0;
    position: absolute;
    left: 0.5rem;
    font-size: 1.2rem;
}

.technical-info strong {
    color: #0f0;
}

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #0ff;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.empty-state p {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .upload-area {
        padding: 2rem 1rem;
    }
    
    .upload-icon {
        font-size: 3rem;
    }
    
    .upload-area h3 {
        font-size: 1.2rem;
    }
    
    .metadata-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .metadata-actions {
        width: 100%;
    }
    
    .metadata-actions button {
        flex: 1;
    }
    
    .metadata-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: thin;
        scrollbar-color: #0f0 rgba(0, 20, 0, 0.3);
    }
    
    .tab-btn {
        min-width: 120px;
        flex-shrink: 0;
    }
    
    .metadata-grid {
        grid-template-columns: 1fr;
    }
    
    .metadata-summary {
        flex-direction: column;
        gap: 1rem;
    }
    
    .coord-display {
        flex-direction: column;
        gap: 1rem;
    }
    
    .preview-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .metadata-types {
        grid-template-columns: 1fr;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .upload-area {
        padding: 1.5rem 1rem;
    }
    
    .btn-primary {
        width: 100%;
    }
    
    .metadata-content {
        padding: 1rem;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.tab-btn:focus,
button:focus {
    outline: 2px solid #0ff;
    outline-offset: 2px;
}

.metadata-item:focus-within {
    border-color: #0f0;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .upload-area,
    .metadata-item,
    .type-card {
        border-width: 3px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   TOOL NAVIGATION
   ============================================ */

.tool-nav {
    background: rgba(0, 17, 0, 0.95);
    border: 2px solid rgba(0, 255, 65, 0.5);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.tool-nav h3 {
    color: #00ff41;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.tool-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.tool-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(0, 255, 65, 0.3);
    border-radius: 8px;
    padding: 1rem;
    color: #0cc;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tool-link:hover {
    border-color: #00ff41;
    background: rgba(0, 255, 65, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 65, 0.2);
}

.tool-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.tool-name {
    font-weight: bold;
    font-size: 1rem;
}

/* Update responsive design for tool navigation */
@media (max-width: 480px) {
    .tool-links {
        grid-template-columns: 1fr;
    }
    
    .tool-link {
        padding: 0.75rem;
    }
    
    .tool-icon {
        font-size: 1.25rem;
    }
}

/* ============================================
   INSTRUCTIONS PANEL
   ============================================ */

.instructions-panel {
    background: rgba(0, 40, 40, 0.8);
    border: 2px solid #00ff41;
    border-radius: 10px;
    margin-bottom: 30px;
    overflow: hidden;
}

.instructions-toggle {
    width: 100%;
    background: rgba(0, 255, 65, 0.1);
    border: none;
    padding: 15px;
    color: #00ff41;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.instructions-toggle:hover {
    background: rgba(0, 255, 65, 0.2);
}

.toggle-icon {
    transition: transform 0.3s;
    font-size: 1.2rem;
    font-weight: bold;
}

.toggle-icon.open {
    transform: rotate(180deg);
}

.instructions-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.instructions-content.open {
    max-height: 1000px;
    padding: 20px;
}

.instructions-content h3 {
    color: #00ff41;
    margin-top: 15px;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.instructions-content h3:first-child {
    margin-top: 0;
}

.instructions-content ol,
.instructions-content ul {
    color: #0cc;
    line-height: 1.8;
    margin-bottom: 15px;
    padding-left: 25px;
}

.instructions-content li {
    margin-bottom: 10px;
}

.instructions-content strong {
    color: #00ff41;
}

.instructions-content p {
    color: #0cc;
    line-height: 1.6;
    margin-bottom: 10px;
}