/**
 * Celebration SAAS Platform - Main Styles
 * Version: 2.0.0 (production-ready - all errors fixed)
 */

/* =========================
   CSS VARIABLES
   ========================= */
:root {
  --celebration-primary: #667eea;
  --celebration-secondary: #764ba2;
  --celebration-success: #43e97b;
  --celebration-error: #f5576c;
  --celebration-warning: #fa709a;
  --celebration-info: #4facfe;
  --celebration-dark: #2d3748;
  --celebration-light: #f7fafc;
  --celebration-border: #e2e8f0;
  --celebration-muted: #718096;
  --celebration-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --celebration-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
  --celebration-radius: 12px;
  --celebration-radius-sm: 8px;
  --celebration-transition: all 0.3s ease;
}

/* =========================
   GENERAL RESET - FIXED
   ========================= */
.celebration-videos-container div,
.celebration-videos-container span,
.celebration-videos-container p,
.celebration-videos-container h1,
.celebration-videos-container h2,
.celebration-videos-container h3,
.celebration-videos-container h4,
.celebration-videos-container button,
.celebration-videos-container img,
.celebration-upload-container div,
.celebration-upload-container span,
.celebration-upload-container p,
.celebration-upload-container h1,
.celebration-upload-container h2,
.celebration-upload-container h3,
.celebration-upload-container h4,
.celebration-upload-container button,
.celebration-upload-container input,
.celebration-upload-container textarea,
.celebration-upload-container select,
.celebration-analytics-container div,
.celebration-analytics-container span,
.celebration-analytics-container p,
.celebration-analytics-container h1,
.celebration-analytics-container h2,
.celebration-analytics-container h3,
.celebration-analytics-container h4,
.celebration-modal div,
.celebration-modal span,
.celebration-modal p,
.celebration-modal h1,
.celebration-modal h2,
.celebration-modal h3,
.celebration-modal button {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* =========================
   CONTAINER STYLES
   ========================= */
.celebration-videos-container,
.celebration-upload-container,
.celebration-analytics-container {
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.celebration-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e2e8f0;
}

.celebration-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: #2d3748;
  margin: 0;
}

.celebration-header p {
  color: #718096;
  margin: 5px 0 0 0;
}

/* =========================
   TIER BADGES
   ========================= */
.celebration-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.celebration-tier-badge.premium {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.celebration-tier-badge.free {
  background: #e2e8f0;
  color: #4a5568;
}

/* =========================
   VIDEO GRID
   ========================= */
.celebration-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.celebration-video-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.celebration-video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.celebration-video-card .video-thumbnail {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  background: #000;
}

.celebration-video-card .video-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.celebration-video-card:hover .video-thumbnail img {
  transform: scale(1.05);
}

.celebration-video-card .video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.celebration-video-card:hover .video-overlay {
  opacity: 1;
}

.celebration-video-card .play-btn {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  font-size: 24px;
  color: #667eea;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.celebration-video-card .play-btn:hover {
  transform: scale(1.1);
  background: #fff;
}

.celebration-video-card .video-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.celebration-video-card .video-info {
  padding: 15px;
}

.celebration-video-card .video-title {
  font-size: 16px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  -moz-box-orient: vertical;
  overflow: hidden;
}

.celebration-video-card .video-meta {
  display: flex;
  gap: 15px;
  font-size: 13px;
  color: #718096;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.celebration-video-card .video-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.celebration-video-card .video-date {
  font-size: 12px;
  color: #718096;
  margin: 0;
}

/* =========================
   EMPTY STATE
   ========================= */
.celebration-empty-state {
  text-align: center;
  padding: 60px 20px;
  background: #f7fafc;
  border-radius: 12px;
  margin-top: 20px;
}

.celebration-empty-icon {
  font-size: 80px;
  margin-bottom: 20px;
  opacity: 0.5;
}

.celebration-empty-state h3 {
  font-size: 24px;
  color: #2d3748;
  margin-bottom: 10px;
}

.celebration-empty-state p {
  font-size: 16px;
  color: #718096;
  margin-bottom: 25px;
}

/* =========================
   UPLOAD FORM
   ========================= */
.celebration-form {
  max-width: 700px;
  margin: 0 auto;
}

.celebration-form .form-group {
  margin-bottom: 25px;
}

.celebration-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 8px;
}

.celebration-form input[type="text"],
.celebration-form input[type="url"],
.celebration-form input[type="email"],
.celebration-form textarea,
.celebration-form select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.3s ease;
}

.celebration-form input:focus,
.celebration-form textarea:focus,
.celebration-form select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

.celebration-form .form-help {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #718096;
}

.celebration-form .form-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.celebration-form button.button {
  padding: 14px 30px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.celebration-form button.primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  flex: 1;
}

.celebration-form button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.celebration-form button.primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.celebration-form button.secondary {
  background: #e2e8f0;
  color: #2d3748;
}

.celebration-form button.secondary:hover {
  background: #cbd5e0;
}

/* =========================
   NOTIFICATIONS & MESSAGES
   ========================= */
.celebration-notice {
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.6;
}

.celebration-notice.success {
  background: #c6f6d5;
  color: #22543d;
  border-left: 4px solid #43e97b;
}

.celebration-notice.info {
  background: #bee3f8;
  color: #2c5282;
  border-left: 4px solid #4facfe;
}

.celebration-notice.warning {
  background: #feebc8;
  color: #7c2d12;
  border-left: 4px solid #fa709a;
}

.celebration-notice.error {
  background: #fed7d7;
  color: #742a2a;
  border-left: 4px solid #f5576c;
}

.celebration-message {
  padding: 15px 20px;
  border-radius: 8px;
  margin-top: 20px;
  animation: fadeIn 0.3s ease;
}

.celebration-message-success {
  background: #43e97b;
  color: #fff;
}

.celebration-message-error {
  background: #f5576c;
  color: #fff;
}

/* =========================
   UPGRADE CTA
   ========================= */
.celebration-upgrade-cta {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  margin-top: 30px;
}

.celebration-upgrade-cta h3 {
  font-size: 28px;
  margin-bottom: 20px;
}

.celebration-upgrade-cta ul {
  list-style: none;
  margin: 25px 0;
  padding: 0;
}

.celebration-upgrade-cta li {
  font-size: 16px;
  margin: 12px 0;
  padding-left: 30px;
  position: relative;
}

.celebration-upgrade-cta li::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-weight: 700;
  font-size: 20px;
}

.celebration-upgrade-cta .button {
  display: inline-block;
  padding: 15px 40px;
  background: #fff;
  color: #667eea;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  margin-top: 20px;
  transition: all 0.3s ease;
}

.celebration-upgrade-cta .button:hover {
  background: #f7fafc;
  color: #764ba2;
  transform: translateY(-2px);
}

/* =========================
   MODALS
   ========================= */
.celebration-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  display: none;
}

.celebration-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.celebration-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
}

.celebration-modal-content {
  position: relative;
  background: #fff;
  border-radius: 12px;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 10;
}

.celebration-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 20;
}

.celebration-modal-close:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.celebration-modal-body {
  padding: 30px;
}

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

/* =========================
   ACCESSIBILITY
   ========================= */
button:focus,
input:focus,
textarea:focus,
select:focus,
.celebration-video-card:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* =========================
   END OF FILE
   ========================= */