/*
Theme Name: DriveVault
Theme URI: https://github.com/drivevault
Author: DriveVault Team
Author URI: https://drivevault.io
Description: DriveVault – Multi-Provider File Sharing & Video Streaming Platform. Upload files to 12+ hosting providers simultaneously. Features: parallel uploads, embed code generation, custom domain masking, upload history, video player with server switcher, and full WordPress admin integration.
Version: 1.0.3
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: drivevault
Tags: dark, custom-menu, featured-images, threaded-comments, translation-ready, file-management, video, upload
*/

/* =============================================
   BASE RESET & TYPOGRAPHY
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary:    #06070a;
  --bg-secondary:  #0d0f14;
  --bg-card:       rgba(255,255,255,0.03);
  --border:        rgba(255,255,255,0.08);
  --border-hover:  rgba(255,255,255,0.15);
  --text-primary:  #f1f5f9;
  --text-muted:    #64748b;
  --accent-blue:   #3b82f6;
  --accent-amber:  #f59e0b;
  --accent-purple: #8b5cf6;
  --accent-cyan:   #06b6d4;
  --accent-green:  #10b981;
  --accent-red:    #ef4444;
  --accent-pink:   #ec4899;
  --sidebar-w:     240px;
  --radius:        12px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent-blue); text-decoration: none; }
a:hover { color: #60a5fa; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

/* =============================================
   WORDPRESS STANDARD CLASSES
   ============================================= */
.screen-reader-text {
  clip: rect(1px,1px,1px,1px);
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
}

.alignleft  { float: left; margin: 0.5em 1em 0.5em 0; }
.alignright { float: right; margin: 0.5em 0 0.5em 1em; }
.aligncenter { clear: both; display: block; margin: 0 auto; }

/* =============================================
   LAYOUT
   ============================================= */
.site-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(12px);
}

.site-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem; font-weight: 700;
  color: var(--text-primary) !important;
}

.site-logo .logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}

.site-content { max-width: 1200px; margin: 3rem auto; padding: 0 1.5rem; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* =============================================
   CARDS & GLASS EFFECT
   ============================================= */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  transition: border-color .2s, transform .2s;
}
.glass-card:hover { border-color: var(--border-hover); }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: .5rem 1rem;
  border-radius: 8px;
  font-size: .875rem; font-weight: 500;
  cursor: pointer; border: none;
  transition: all .2s; white-space: nowrap;
}
.btn-primary {
  background: var(--accent-blue); color: #fff;
}
.btn-primary:hover { background: #2563eb; }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
}
.btn-ghost:hover { border-color: var(--border-hover); background: rgba(255,255,255,.04); }
.btn-danger { background: var(--accent-red); color: #fff; }
.btn-danger:hover { background: #dc2626; }

/* =============================================
   NAVIGATION MENU
   ============================================= */
.main-navigation ul { list-style: none; display: flex; gap: .5rem; }
.main-navigation a {
  display: block; padding: .5rem .75rem;
  border-radius: 6px; font-size: .875rem;
  color: var(--text-muted);
  transition: color .2s, background .2s;
}
.main-navigation a:hover,
.main-navigation .current-menu-item a {
  color: var(--text-primary);
  background: rgba(255,255,255,.06);
}

/* =============================================
   FRONT-PAGE HERO (when not admin page)
   ============================================= */
.drivevault-hero {
  text-align: center; padding: 5rem 1.5rem;
}
.drivevault-hero h1 {
  font-size: 3.5rem; font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 1.25rem;
}
.drivevault-hero p { color: var(--text-muted); font-size: 1.125rem; max-width: 540px; margin: 0 auto 2.5rem; }

/* feature grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 1.25rem; margin-top: 4rem;
}
.feature-card {
  padding: 2rem; text-align: left;
}
.feature-card .feature-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
}
.feature-card h3 { font-size: 1.125rem; margin-bottom: .5rem; }
.feature-card p  { color: var(--text-muted); font-size: .9rem; }

/* =============================================
   ENTRY / POST STYLES
   ============================================= */
.entry-header { margin-bottom: 2rem; }
.entry-title  { font-size: 2.25rem; }
.entry-meta   { color: var(--text-muted); font-size: .85rem; margin-top: .5rem; }
.entry-content { line-height: 1.8; }
.entry-content p  { margin-bottom: 1rem; }
.entry-content h2 { font-size: 1.5rem; margin: 2rem 0 .75rem; }
.entry-content h3 { font-size: 1.25rem; margin: 1.5rem 0 .5rem; }
.entry-content ul, .entry-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.entry-content blockquote {
  border-left: 3px solid var(--accent-blue);
  padding-left: 1rem; margin: 1.5rem 0;
  color: var(--text-muted);
}
.entry-content code {
  background: rgba(255,255,255,.06);
  padding: 2px 6px; border-radius: 4px;
  font-size: .85em; font-family: monospace;
}
.entry-content pre {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 8px; padding: 1rem;
  overflow-x: auto; margin-bottom: 1rem;
}

/* post grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
  gap: 1.25rem;
}
.post-card { overflow: hidden; }
.post-card .post-thumbnail { aspect-ratio: 16/9; overflow: hidden; }
.post-card .post-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.post-card .post-body { padding: 1.25rem; }
.post-card h2 { font-size: 1.1rem; margin-bottom: .4rem; }
.post-card .post-meta { font-size: .8rem; color: var(--text-muted); }

/* comments */
.comments-area { margin-top: 3rem; }
.comment-list  { list-style: none; }
.comment { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.comment-author { font-weight: 600; margin-bottom: .25rem; }
.comment-meta   { font-size: .8rem; color: var(--text-muted); margin-bottom: .5rem; }
.comment-content p { margin-bottom: .5rem; }
.comment-respond { margin-top: 2rem; }
.comment-form input,
.comment-form textarea {
  width: 100%; background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 8px; color: var(--text-primary);
  padding: .625rem .875rem; font-size: .9rem;
  outline: none; transition: border-color .2s;
  margin-bottom: .75rem;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--accent-blue); }
.comment-form input[type="submit"] { @extend .btn; @extend .btn-primary; width: auto; cursor: pointer; }

/* widgets */
.widget { margin-bottom: 2rem; }
.widget-title { font-size: 1rem; margin-bottom: .75rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border); }
.widget ul { list-style: none; }
.widget ul li { padding: .3rem 0; border-bottom: 1px solid var(--border); font-size: .875rem; }

/* pagination */
.pagination { display: flex; gap: .5rem; margin-top: 2.5rem; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  font-size: .875rem; color: var(--text-muted);
  transition: all .2s;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--accent-blue); border-color: var(--accent-blue); color: #fff;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .drivevault-hero h1 { font-size: 2.25rem; }
  .site-content { padding: 0 1rem; }
  .main-navigation { display: none; }
}
