/* Additional styles beyond Tailwind CSS */

/* Light mode styles */
:root {
    --bg-color: #36393F;
    --darker-bg: #2F3136;
    --darkest-bg: #202225;
    --text-color: #ffffff;
    --muted-text: #a3a6aa;
    --blurple: #5865F2;
    --green: #57F287;
    --yellow: #FEE75C;
    --fuchsia: #EB459E;
    --red: #ED4245;
}

/* Light mode theme */
.light {
    --bg-color: #F6F6F6;
    --darker-bg: #E3E5E8;
    --darkest-bg: #D4D7DC;
    --text-color: #2E3338;
    --muted-text: #747F8D;
}

/* Apply theme variables */
.light {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.light .bg-discord-dark {
    background-color: var(--bg-color);
}

.light .bg-discord-darker {
    background-color: var(--darker-bg);
}

.light .bg-discord-darkest {
    background-color: var(--darkest-bg);
}

.light .text-white {
    color: var(--text-color);
}

.light .text-gray-400 {
    color: var(--muted-text);
}

.light .border-gray-600 {
    border-color: #C4C9CE;
}

/* Smooth transitions for theme switching */
body, .bg-discord-dark, .bg-discord-darker, .bg-discord-darkest, .text-white, .text-gray-400, .border-gray-600 {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--darkest-bg);
}

::-webkit-scrollbar-thumb {
    background: #4E5058;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5c5e66;
}

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

.timestamp-result {
    animation: fadeIn 0.3s ease-in-out;
}

/* Tooltip styles */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: var(--darkest-bg);
    color: var(--text-color);
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Focus styles for accessibility */
input:focus, select:focus, button:focus {
    outline: 2px solid var(--blurple);
    outline-offset: 2px;
}

/* Mobile responsiveness enhancements */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
}

/* Premium feature styles */
.premium-feature {
    position: relative;
    overflow: hidden;
}

.premium-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(88, 101, 242, 0.1), rgba(235, 69, 158, 0.1));
    z-index: -1;
}

/* Copy button hover effect */
.copy-btn {
    transition: transform 0.2s ease;
}

.copy-btn:hover {
    transform: scale(1.05);
}

/* Code block styling */
pre {
    position: relative;
    overflow-x: auto;
}

pre code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

/* Timestamp preview animation */
#results .timestamp-result {
    transform: translateY(10px);
    opacity: 0;
    animation: slideUp 0.3s forwards;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#results .timestamp-result:nth-child(1) { animation-delay: 0.1s; }
#results .timestamp-result:nth-child(2) { animation-delay: 0.2s; }
#results .timestamp-result:nth-child(3) { animation-delay: 0.3s; }
#results .timestamp-result:nth-child(4) { animation-delay: 0.4s; }
#results .timestamp-result:nth-child(5) { animation-delay: 0.5s; }
#results .timestamp-result:nth-child(6) { animation-delay: 0.6s; }
#results .timestamp-result:nth-child(7) { animation-delay: 0.7s; }

/* Button styles */
button {
    transition: all 0.2s ease;
}

button:active {
    transform: scale(0.95);
}

/* Improve accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Print styles */
@media print {
    body {
        background-color: white;
        color: black;
    }
    
    .bg-discord-dark, .bg-discord-darker, .bg-discord-darkest {
        background-color: white;
        color: black;
        border: 1px solid #ddd;
    }
    
    button, .copy-btn {
        display: none;
    }
}