/* GIF Maker specific styles */
.gifmaker-main {
    padding-top: 80px;
    min-height: 100vh;
}

.gifmaker-header {
    text-align: center;
    margin-bottom: 40px;
    color: #ffffff;
}

.gifmaker-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    color: #4a9eff;
    font-family: 'Cinzel', serif;
}

.gifmaker-header p {
    font-size: 1.1rem;
    opacity: 0.8;
    color: #b0b0b0;
    font-family: 'Inter', sans-serif;
}

.gifmaker-content {
    max-width: 800px;
    margin: 0 auto;
}

.social-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: rgba(74, 158, 255, 0.1);
    border: 2px solid rgba(74, 158, 255, 0.3);
    border-radius: 25px;
    color: #4a9eff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: rgba(74, 158, 255, 0.2);
    border-color: rgba(74, 158, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 158, 255, 0.3);
    color: #ffffff;
}

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

.upload-area {
    background: rgba(26, 26, 46, 0.7);
    border: 3px dashed rgba(74, 158, 255, 0.4);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border: 2px dashed rgba(74, 158, 255, 0.6);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.6;
}

.upload-area:hover {
    background: rgba(26, 26, 46, 0.9);
    border-color: rgba(74, 158, 255, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
}

.upload-content {
    color: #ffffff;
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #4a9eff;
}

.upload-hint {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 5px;
    color: #b0b0b0;
}

.controls-section {
    background: rgba(26, 26, 46, 0.7);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(74, 158, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.control-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: #ffffff;
}

.control-group:last-child {
    margin-bottom: 0;
}

.control-group label {
    min-width: 120px;
    font-weight: 500;
    color: #4a9eff;
}

.control-group input[type="range"] {
    flex: 1;
    margin: 0 15px;
    height: 6px;
    border-radius: 3px;
    background: rgba(74, 158, 255, 0.3);
    outline: none;
    -webkit-appearance: none;
}

.control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4a9eff;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.control-group input[type="text"] {
    flex: 1;
    margin: 0 15px;
    padding: 8px 12px;
    border: 2px solid rgba(74, 158, 255, 0.3);
    border-radius: 8px;
    background: rgba(15, 15, 35, 0.8);
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.control-group input[type="text"]::placeholder {
    color: rgba(176, 176, 176, 0.6);
}

.control-group input[type="text"]:focus {
    border-color: rgba(74, 158, 255, 0.6);
    background: rgba(15, 15, 35, 0.9);
    box-shadow: 0 0 10px rgba(74, 158, 255, 0.3);
}

.control-group span {
    min-width: 60px;
    text-align: right;
    font-weight: 500;
    font-size: 0.9rem;
    color: #4a9eff;
}

.direction-btn {
    flex: 1;
    margin: 0 15px;
    padding: 8px 16px;
    background: rgba(74, 158, 255, 0.2);
    border: 2px solid rgba(74, 158, 255, 0.4);
    border-radius: 8px;
    color: #4a9eff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.direction-btn:hover {
    background: rgba(74, 158, 255, 0.3);
    border-color: rgba(74, 158, 255, 0.6);
    transform: translateY(-1px);
}

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

.canvas-container {
    display: flex;
    justify-content: center;
    background: rgba(26, 26, 46, 0.7);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(74, 158, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

#previewCanvas {
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    background: #000;
}

.action-section {
    margin-bottom: 40px;
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.action-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    min-width: 120px;
}

.action-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.download-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.copy-btn {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
}

.generate-btn {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #4a9eff, #3f87e6);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(74, 158, 255, 0.3);
}

.generate-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #5ba8ff, #4a9eff);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(74, 158, 255, 0.4);
}

.generate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.progress-container {
    margin-top: 20px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(74, 158, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4a9eff, #5ba8ff);
    width: 0%;
    transition: width 0.3s ease;
}

#progressText {
    color: #4a9eff;
    font-weight: 500;
}

.lore-section {
    background: rgba(26, 26, 46, 0.8);
    border-radius: 20px;
    padding: 40px;
    margin-top: 40px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(74, 158, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.lore-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(74, 158, 255, 0.05) 50%, transparent 70%);
    pointer-events: none;
}

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

.lore-content h2 {
    text-align: center;
    color: #4a9eff;
    font-size: 2rem;
    margin-bottom: 30px;
    font-family: 'Cinzel', serif;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.lore-text {
    color: #e0e0e0;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.lore-text p {
    margin-bottom: 20px;
}

.lore-quote {
    text-align: center;
    font-style: italic;
    color: #b0b0b0;
    border-left: 4px solid #4a9eff;
    padding-left: 20px;
    margin-top: 30px;
}

.lore-quote blockquote {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.lore-quote cite {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .gifmaker-content {
        padding: 0 15px;
    }
    
    .gifmaker-header h1 {
        font-size: 2rem;
    }
    
    .canvas-container {
        padding: 15px;
    }
    
    #previewCanvas {
        width: 100%;
        max-width: 350px;
        height: auto;
    }
    
    .control-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .control-group label {
        min-width: auto;
    }
    
    .button-group {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .lore-section {
        padding: 25px;
    }
    
    .lore-content h2 {
        font-size: 1.5rem;
    }
    
    .lore-text {
        font-size: 1rem;
    }
    
    .lore-quote {
        padding-left: 15px;
    }
} 