/*
Theme Name: Chevereto Pro Alternative
Theme URI: https://example.com/
Author: Antigravity AI
Author URI: https://example.com/
Description: A hyper-fast, premium dark-mode image and video hosting theme alternative to Chevereto.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chevereto-alt
*/

:root {
  --bg-color: #0f1115;
  --surface-color: #1a1d24;
  --surface-hover: #232730;
  --primary-color: #3b82f6; /* Vibrant Blue */
  --primary-hover: #2563eb;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(26, 29, 36, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Glassmorphism Utilities */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  background: rgba(15, 17, 21, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  background: var(--surface-hover);
}

/* Main Layout */
.site-main {
  flex: 1;
  padding: 2rem;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

/* Uploader Section */
.upload-area {
  padding: 4rem 2rem;
  text-align: center;
  margin-bottom: 3rem;
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  cursor: pointer;
  background: var(--surface-color);
}

.upload-area:hover, .upload-area.dragover {
  border-color: var(--primary-color);
  background: var(--surface-hover);
}

.upload-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.upload-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.upload-subtitle {
  color: var(--text-secondary);
}

/* Masonry Grid */
.masonry-grid {
  columns: 4 300px;
  column-gap: 1.5rem;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-color);
  cursor: zoom-in;
}

.masonry-item img {
  width: 100%;
  display: block;
  transition: transform var(--transition-smooth);
}

.masonry-item:hover img {
  transform: scale(1.03);
}

.item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-fast);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.masonry-item:hover .item-overlay {
  opacity: 1;
}

.item-title {
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Dropzone Overrides */
.dropzone {
  min-height: 200px;
  border: 2px dashed var(--border-color);
  background: var(--surface-color);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem;
}

.dropzone .dz-message {
  text-align: center;
  width: 100%;
  margin: 2em 0;
  font-weight: 500;
}

.dropzone:hover, .dropzone.dz-drag-hover {
  border-color: var(--primary-color);
  background: var(--surface-hover);
}

.dropzone .dz-preview {
  margin: 0 !important;
  flex: 0 0 calc(25% - 1rem); /* 4 items per row roughly */
  min-width: 150px;
}

.dropzone .dz-preview .dz-details {
  background: var(--surface-color) !important;
  color: var(--text-primary) !important;
}

.dropzone .dz-preview .dz-success-mark, 
.dropzone .dz-preview .dz-error-mark {
  color: var(--text-primary) !important;
}
