/*
Theme Name: AI Media Creator
Theme URI: http://example.com/ai-media-creator
Author: WP Architect
Author URI: http://example.com
Description: Ένα σύγχρονο WordPress theme για παραγωγή MP3 τραγουδιών και Video μέσω του Replicate AI, ιδανικό για TikTok, Instagram & Facebook.
Version: 1.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ai-media-creator
*/

:root {
  --bg-color: #0d0f12;
  --card-bg: #1a1d24;
  --primary: #6c5ce7;
  --primary-hover: #5a4bcf;
  --text-main: #ffffff;
  --text-muted: #a0a5b1;
  --border-color: #2d323e;
  --accent: #00d2d3;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
}

.aimedia-wrapper {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 20px;
}

.aimedia-header {
  text-align: center;
  margin-bottom: 40px;
}

.aimedia-header h1 {
  font-size: 2.5rem;
  background: -webkit-linear-gradient(45deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.aimedia-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.aimedia-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 14px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.btn-primary {
  width: 100%;
  background: linear-gradient(45deg, var(--primary), var(--accent));
  color: #fff;
  border: none;
  padding: 16px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#result-container {
  margin-top: 30px;
  text-align: center;
}

.loader {
  display: none;
  margin: 20px auto;
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--accent);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.media-output {
  margin-top: 20px;
  padding: 20px;
  background: var(--bg-color);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

a.download-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background: var(--text-main);
  color: var(--bg-color);
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  transition: background 0.3s;
}

a.download-btn:hover {
  background: var(--text-muted);
}

audio, video {
  width: 100%;
  outline: none;
  border-radius: 8px;
}