/* ZenShredd Main Stylesheet */

/* === Base Styles === */
:root {
    --primary-color: #6200ea;
    --primary-light: #9d46ff;
    --primary-dark: #0a00b6;
    --secondary-color: #00bfa5;
    --secondary-light: #5df2d6;
    --secondary-dark: #008e76;
    --text-color: #333333;
    --text-light: #666666;
    --background-color: #ffffff;
    --background-alt: #f5f7fa;
    --border-color: #e0e0e0;
    --success-color: #00c853;
    --error-color: #d50000;
    --warning-color: #ffc107;
    --info-color: #2196f3;
  }
  
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html {
    font-size: 16px;
    line-height: 1.5;
  }
  
  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica 
Neue", sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
  }
  
  h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 600;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  p {
    margin-bottom: 1rem;
  }
  
  a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
  }
  
  a:hover {
    color: var(--primary-light);
  }
  
  ul, ol {
    margin: 0 0 1rem 1.25rem;
  }
  
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* === Layout === */
  .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .hidden {
    display: none !important;
  }
  
  /* === Header === */
  header {
    background-color: var(--primary-dark);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .logo a {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  
  nav ul {
    display: flex;
    list-style: none;
    margin: 0;
  }
  
  nav ul li {
    margin-left: 1.5rem;
  }
  
  nav ul li a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
  }
  
  nav ul li a:hover, 
  nav ul li a.active {
    color: white;
  }
  
  /* === Footer === */
  footer {
    background-color: #222;
    color: white;
    padding: 3rem 0 1.5rem;
  }
  
  .footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
  }
  
  .footer-logo a {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
  }
  
  .footer-links ul {
    list-style: none;
    margin: 0;
    display: flex;
  }
  
  .footer-links ul li {
    margin-left: 1.5rem;
  }
  
  .footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
  }
  
  .footer-links ul li a:hover {
    color: white;
  }
  
  .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
  }
  
  /* === Buttons === */
  .button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s, transform 0.1s;
    text-align: center;
  }
  
  .button:hover {
    background-color: var(--primary-light);
    color: white;
  }
  
  .button:active {
    transform: translateY(1px);
  }
  
  .button.primary {
    background-color: var(--primary-color);
  }
  
  .button.secondary {
    background-color: var(--secondary-color);
  }
  
  .button.secondary:hover {
    background-color: var(--secondary-light);
  }
  
  .button:disabled {
    background-color: var(--text-light);
    cursor: not-allowed;
  }
  
  .cta-buttons {
    margin: 1.5rem 0;
  }
  
  .cta-buttons .button {
    margin-right: 1rem;
    margin-bottom: 1rem;
  }
  
  /* === Hero Section === */
  .hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
    padding: 5rem 0;
    text-align: center;
  }
  
  .hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
  }
  
  .hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2rem;
  }
  
  /* === Feature Grid === */
  .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
  }
  
  .feature {
    text-align: center;
    padding: 2rem;
    background-color: var(--background-alt);
    border-radius: 8px;
    transition: transform 0.3s;
  }
  
  .feature:hover {
    transform: translateY(-5px);
  }
  
  .feature-icon {
    background-color: var(--primary-color);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
  }
  
  /* === Benefits === */
  .benefits {
    background-color: var(--background-alt);
  }
  
  .benefits-list {
    margin: 2rem 0;
    list-style: none;
  }
  
  .benefits-list li {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    position: relative;
  }
  
  .benefits-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
  }
  
  .benefits-list li strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
  }
  
  /* === Get Started === */
  .get-started {
    text-align: center;
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary-color));
    color: white;
  }
  
  /* === Page Header === */
  .page-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
    padding: 3rem 0;
    text-align: center;
  }
  
  /* === Upload Page === */
  .upload-section .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
  }
  
  .upload-container {
    background-color: var(--background-alt);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }
  
  .drop-area {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    transition: border-color 0.3s, background-color 0.3s;
    cursor: pointer;
    margin-bottom: 2rem;
  }
  
  .drop-area.active {
    border-color: var(--primary-color);
    background-color: rgba(98, 0, 234, 0.05);
  }
  
  .drop-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
  }
  
  .file-requirements {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 1rem;
  }
  
  .form-group {
    margin-bottom: 1.5rem;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
  }
  
  .form-group input, 
  .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
  }
  
  .form-group input:focus, 
  .form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
  }
  
  .form-actions {
    margin-top: 2rem;
  }
  
  .upload-info {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }
  
  .upload-info h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .upload-info h3:first-child {
    margin-top: 0;
  }
  
  .status-area {
    margin-bottom: 2rem;
  }
  
  .file-details, 
  .validation-status, 
  .upload-status {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  }
  
  .success {
    color: var(--success-color);
  }
  
  .error {
    color: var(--error-color);
  }
  
  /* === Projects Page === */
  .projects-controls {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
  }
  
  .sort-controls {
    display: flex;
    align-items: center;
  }
  
  .sort-controls span {
    margin-right: 1rem;
    color: var(--text-light);
  }
  
  .sort-button {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    transition: background-color 0.2s;
  }
  
  .sort-button:hover {
    background-color: var(--background-alt);
  }
  
  .sort-button.active {
    color: var(--primary-color);
    font-weight: 500;
    position: relative;
  }
  
  .sort-button.active::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
  }
  
  .sort-button.active.asc::after {
    border-bottom: 5px solid var(--primary-color);
  }
  
  .sort-button.active.desc::after {
    border-top: 5px solid var(--primary-color);
  }
  
  .loading-indicator {
    text-align: center;
    padding: 3rem 0;
  }
  
  .spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid var(--primary-color);
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  .error-container {
    background-color: rgba(213, 0, 0, 0.1);
    color: var(--error-color);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 2rem;
  }
  
  .projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
  }
  
  .project-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
  }
  
  .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  
  .project-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
  }
  
  .project-header h3 {
    margin-bottom: 0.5rem;
  }
  
  .project-meta {
    font-size: 0.875rem;
    color: var(--text-light);
    display: flex;
    flex-wrap: wrap;
  }
  
  .project-meta span {
    margin-right: 1rem;
    margin-bottom: 0.25rem;
  }
  
  .project-body {
    padding: 1.5rem;
    flex-grow: 1;
  }
  
  .project-footer {
    padding: 1.5rem;
    background-color: var(--background-alt);
  }
  
  .download-button {
    display: block;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 0.75rem;
    border-radius: 4px;
    transition: background-color 0.2s;
  }
  
  .download-button:hover {
    background-color: var(--primary-light);
    color: white;
  }
  
  .empty-state {
    text-align: center;
    padding: 3rem 0;
  }
  
  .upload-cta {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--background-alt);
    border-radius: 8px;
  }
  
  /* === Icons === */
  .icon-upload::before {
    content: "⬆️";
  }
  
  .icon-download::before {
    content: "⬇️";
  }
  
  .icon-check::before {
    content: "✓";
  }
  
  /* === Responsive Design === */
  @media (max-width: 768px) {
    .upload-section .container {
      grid-template-columns: 1fr;
    }
    
    .hero h1 {
      font-size: 2.5rem;
    }
    
    .footer-content {
      flex-direction: column;
      align-items: center;
    }
    
    .footer-links ul {
      margin-top: 1rem;
    }
    
    .footer-links ul li:first-child {
      margin-left: 0;
    }
  }
  
  @media (max-width: 576px) {
    .hero h1 {
      font-size: 2rem;
    }
    
    .hero p {
      font-size: 1rem;
    }
    
    .projects-controls {
      flex-direction: column;
      align-items: flex-start;
    }
    
    .sort-controls {
      margin-top: 1rem;
      width: 100%;
      justify-content: space-between;
    }
    
    .sort-controls span {
      display: none;
    }
  }
