/* Log Interface Styles */

#log-container {
    position: absolute;  /* Add this */
    top: 0;             /* Add this */
    left: 0;            /* Add this */
    width: 100%;        /* Add this */
    height: 100%;       /* Add this */
    background: rgba(10, 10, 10, 0.95);
    overflow-y: auto;
    padding: 2rem;
    z-index: 20;
}

.log-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 20;
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--scary-color);
}

.log-header h2 {
    font-size: 2.5rem;
    margin: 0;
}

.log-entries {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.entry-card {
    background: var(--secondary-bg);
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.entry-card:hover {
    border-color: var(--scary-color);
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.4);
    transform: translateY(-5px);
}

.entry-header {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--accent-color);
}

.entry-date {
    font-family: var(--font-scary);
    color: var(--scary-color);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.entry-duration {
    color: var(--text-color);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    opacity: 0.8;
}

.entry-controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.control-button {
    flex: 1;
    background: var(--accent-color);
    color: var(--text-color);
    border: 1px solid var(--scary-color);
    padding: 0.5rem;
    font-size: 0.9rem;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><text x="5" y="30" font-size="30" fill="%23ff0000">☠</text></svg>'), pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
    font-family: var(--font-main);
}

.control-button:hover {
    background: var(--scary-color);
    box-shadow: 0 0 10px rgba(139, 0, 0, 0.6);
}

.control-button:disabled {
    opacity: 0.5;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><circle cx="16" cy="16" r="8" fill="%23666666" opacity="0.6"/></svg>'), not-allowed;
}

.delete-entry {
    background: rgba(139, 0, 0, 0.3);
    border-color: #ff0000;
}

.delete-entry:hover {
    background: #ff0000;
    border-color: #ff0000;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.8);
}

.control-button.playing {
    background: var(--scary-color);
    box-shadow: 0 0 15px rgba(139, 0, 0, 0.8);
    animation: pulse-glow 1.5s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(139, 0, 0, 0.8);
    }
    50% {
        box-shadow: 0 0 25px rgba(139, 0, 0, 1);
    }
}

.entry-transcription {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    font-size: 0.85rem;
    line-height: 1.4;
    max-height: 100px;
    overflow-y: auto;
}

.entry-transcription.hidden {
    display: none;
}

.entry-transcription::-webkit-scrollbar {
    width: 6px;
}

.entry-transcription::-webkit-scrollbar-track {
    background: var(--secondary-bg);
}

.entry-transcription::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 3px;
}

.empty-log {
    text-align: center;
    padding: 3rem;
    font-family: var(--font-scary);
    font-size: 1.5rem;
    color: var(--scary-color);
}

/* Responsive */
@media (max-width: 768px) {
    #log-container {
        padding: 1rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .log-header h2 {
        font-size: 1.8rem;
    }
    
    .log-entries {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .entry-card {
        padding: 1rem;
    }
    
    .control-button {
        font-size: 0.8rem;
        padding: 0.4rem;
    }
}

@media (max-width: 480px) {
    #log-container {
        padding: 0.5rem;
    }
    
    .log-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        margin-bottom: 1rem;
    }
    
    .log-header h2 {
        font-size: 1.5rem;
    }
    
    .entry-controls {
        flex-direction: column;
        gap: 0.4rem;
    }
    
    .control-button {
        width: 100%;
    }
    
    .entry-transcription {
        font-size: 0.8rem;
        max-height: 80px;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .log-entries {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Very small screens */
@media (max-width: 320px) {
    .log-header h2 {
        font-size: 1.2rem;
    }
    
    .entry-date {
        font-size: 0.8rem;
    }
    
    .entry-duration {
        font-size: 0.7rem;
    }
}
