/*
Theme Name: MultiVidz All in One Video Downloader
Theme URI: http://Multividz.com
Author: MultiVidz
Author URI: http://multividz.com
Description: All in One Video Downloader
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: multividz-custom
Tags: custom, responsive, one-page
*/

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600&family=Poppins:wght@400;600;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body, html {
  margin: 0;
  padding: 0;
  background-color: #fff;
  color: #444;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Poppins', sans-serif;
}

/* Header */
header, .site-header {
  background: #387dc7;
  padding: 10px 20px;
  border: 2px solid #387dc7;
  text-align: center;
  display: flex;
  align-items: center;
}

.site-logo, header img {
  height: 50px;
}

main {
  flex: 1;
  padding: 20px;
  max-width: 1000px;
  margin: auto;
}

/* Headings and Titles */
h1 {
  font-size: 32px;
  font-weight: 500;
  margin: 50px 0 10px;
  line-height: 1.2;
  display: flex;
  justify-content: center;
  text-align: center;
  color: #387dc7;
  font-family: 'Orbitron', sans-serif;
}

h1 span.sub {
  font-size: 16px;
  font-weight: 200;
  margin-left: 10px;
}

h2.title {
  font-size: 28px;
  font-family: 'Orbitron', sans-serif;
  text-align: center;
  margin-bottom: 20px;
  color: #387dc7;
}

p.subtitle {
  font-size: 14px;
  text-align: center;
  color: #7c6d6d;
  margin: 0 auto 20px;
  line-height: 1.5;
  max-width: 800px;
}

/* Input Group */
.input-group {
  display: flex;
  justify-content: center;
  max-width: 700px;
  margin: 20px auto 48px;
  gap: 6px;
  padding: 0 10px;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.15);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  border: 1.5px solid #007bff;
}

.input-group input[type="text"] {
  flex: 1;
  padding: 14px 20px;
  font-size: 1.1rem;
  border: none;
  outline: none;
  border-radius: 0;
  font-family: 'Poppins', sans-serif;
}

.input-group button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 0 24px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 0;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-group button:hover,
.input-group button:focus {
  background-color: #0056b3;
  box-shadow: 0 0 12px rgba(0, 86, 179, 0.7);
  outline: none;
}

button:disabled {
  background-color: #999;
  cursor: not-allowed;
}

/* Video Info Container */
.video-info-container {
  max-width: 1000px;
  margin: 30px auto;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-metadata {
  text-align: center;
  margin-bottom: 20px;
}

.video-thumbnail, #thumbnail {
  max-width: 300px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.video-title, #videoTitle {
  font-size: 20px;
  color: #222;
  line-height: 1.3;
  margin-bottom: 10px;
  font-weight: 600;
}

.video-duration {
  font-size: 16px;
  color: #666;
}

#videoInfo {
  display: none;
  margin-top: 20px;
  text-align: center;
}

/* Format Tabs */
.format-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.tab-button {
  padding: 10px 30px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  background: #f1f1f1;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-button.active, .tab-button:hover {
  background: #007bff;
  color: #fff;
  border-radius: 8px;
}

.tab-button:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.tab-button:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* Format Container */
.format-container {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.format-content {
  display: none;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  width: 100%;
  max-width: 600px;
}

.format-content.active {
  display: block;
}

.format-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  margin-bottom: 10px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.format-option:hover {
  transform: translateY(-2px);
}

.format-option span {
  font-size: 16px;
  color: #333;
}

.format-option button {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: #007bff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.format-option button:hover {
  background: #0056b3;
}

.format-option.loading button {
  background: #ccc;
  cursor: not-allowed;
}

/* Progress Bar */
.progress-bar {
  position: relative;
  height: 16px;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 4px;
  background: #f2f2f2;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: #007bff;
  transition: width 0.2s linear;
}

/* Spinner */
#spinner, #downloadSpinner {
  display: none;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin: 15px auto;
  text-align: center;
}

#spinner div, #downloadSpinner div {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 4px solid #387dc7;
  border-top: 4px solid transparent;
  animation: spin 1s linear infinite;
  margin: auto;
}

#spinner p, #downloadSpinner p {
  margin-top: 8px;
  font-size: 14px;
  color: #387dc7;
  font-weight: 600;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Error Message */
.error-msg {
  color: #d32f2f;
  font-size: 13px;
  margin-top: 14px;
  background: linear-gradient(135deg, #ffe6e6, #ffcccc);
  padding: 10px 18px;
  border-left: 4px solid #ff4d4d;
  border-radius: 8px;
  font-weight: 500;
  box-shadow: 0 3px 8px rgba(255, 0, 0, 0.15);
  text-align: center;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}

.error-msg.show {
  animation: showAndHide 2s ease-in-out forwards;
}

@keyframes showAndHide {
  0% {
    opacity: 0;
    transform: translateY(-8px);
  }
  10% {
    opacity: 1;
    transform: translateY(0);
  }
  70% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-8px);
  }
}

/* Animation Container for Magnifier */
.animation-container {
  position: relative;
  display: inline-block;
  width: 120px;
  height: 40px;
  margin: 0 auto;
}

.multividz-text {
  font-size: 24px;
  font-weight: 600;
  color: #222;
  opacity: 0.8;
  line-height: 40px;
  text-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
  position: relative;
  z-index: 2;
}

.magnifier {
  position: absolute;
  top: 50%;
  left: 0;
  width: 30px;
  height: 30px;
  border: 3px solid #007bff;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-50%);
  animation: scan 3s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(0, 123, 255, 0.5);
  z-index: 3;
}

.magnifier-handle {
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 6px;
  height: 12px;
  background: #007bff;
  transform: rotate(45deg);
  border-radius: 2px;
}

@keyframes scan {
  0% {
    left: 0;
    opacity: 0.7;
    box-shadow: 0 0 12px rgba(0, 123, 255, 0.5);
  }
  50% {
    left: calc(100% - 30px);
    opacity: 1;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.8);
  }
  100% {
    left: 0;
    opacity: 0.7;
    box-shadow: 0 0 12px rgba(0, 123, 255, 0.5);
  }
}

/* Platform Benefits */
.platform-benefits {
  max-width: 1000px;
  margin: 50px auto;
  padding: 30px 20px;
  font-size: 16px;
  line-height: 1.8;
  color: #222;
  background-color: #fafafa;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.platform-benefits h3 {
  font-family: 'Segoe UI', 'Poppins', sans-serif;
  font-size: 22px;
  color: #387dc7;
  margin-bottom: 8px;
  font-weight: 600;
}

.platform-benefits p {
  margin-bottom: 15px;
  color: #444;
}

.platform-benefits hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 25px 0;
}

/* How to Download */
.steps-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto 40px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 40px;
  max-width: 900px;
  margin: 0 auto 40px;
}

.step {
  flex: 1 1 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 2px solid #ddd;
  text-align: center;
}

.step h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
}

.step-image-placeholder img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  padding: 20px 0;
}

.feature {
  background: #f5f5f5;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.feature i {
  font-size: 32px;
  color: #387dc7;
  margin-bottom: 15px;
}

.feature h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature p {
  font-size: 15px;
  color: #555;
}

/* Platform Grid */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  max-width: 1000px;
  margin: auto;
  font-size: 14px;
}

.platform {
  background: #fff;
  border: 1px solid #ddd;
  padding: 12px 8px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.platform:hover {
  transform: translateY(-5px);
}

.platform i {
  font-size: 20px;
  display: block;
  margin-bottom: 6px;
  color: #387dc7;
}

.blur {
  filter: blur(3px);
  position: relative;
}

.blur:hover {
  filter: blur(1px);
}

.blur span::after {
  content: "🔞";
  position: absolute;
  right: 6px;
  top: 6px;
  font-size: 12px;
  color: red;
}

/* Footer */
footer, .platforms-section {
  background: #f5f5f5;
  padding: 40px 20px;
  font-family: 'Poppins', sans-serif;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.platforms-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.left-column, .right-column {
  flex: 1;
  min-width: 280px;
}

.left-column h3, .legal-section h4, .right-column h4 {
  font-size: 18px;
  color: #222;
  margin-bottom: 12px;
}

.platform-list a, .legal-section a, .right-column a {
  display: flex;
  align-items: center;
  margin: 6px 0;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.platform-list a i, .legal-section a i, .right-column a i {
  margin-right: 8px;
}

.platform-list a:hover, .legal-section a:hover, .right-column a:hover {
  transform: translateX(6px);
  color: #387dc7;
}

.footer-bar {
  background: #387dc7;
  padding: 12px 20px;
  text-align: center;
  color: #fff;
  font-size: 14px;
  margin-top: 30px;
}

footer a {
  text-decoration: none;
  color: #387dc7;
  padding: 2px 6px;
  border-radius: 5px;
}

footer a:hover {
  text-decoration: underline;
}

footer a:active {
  transform: translateX(5px);
  background-color: rgba(0, 123, 255, 0.1);
}

footer li::before {
  content: "\1F517 ";
}

/* About Section */
.about {
  font-size: 15px;
  margin-top: 30px;
  line-height: 1.7;
  color: #444;
}

.about h3 {
  color: #387dc7;
  margin-bottom: 10px;
}

/* FAQ Section */
.container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.faq {
  margin-bottom: 15px;
  border-bottom: 1px solid #ddd;
}

.faq button {
  background: #fff;
  color: #333;
  cursor: pointer;
  padding: 15px;
  width: 100%;
  border: none;
  outline: none;
  text-align: left;
  font-size: 16px;
  font-weight: 100;
  transition: 0.3s;
}

.faq button:hover {
  background: #f0f0f0;
}

.faq button:after {
  content: '+';
  float: right;
  font-size: 20px;
}

.faq button.active:after {
  content: '-';
}

.faq .answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: #fafafa;
  padding: 0 15px;
  color: #555;
}

.faq .answer p {
  margin: 15px 0;
}

/* Hidden iframe for downloads */
#downloadIframe {
  display: none;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Adjustments */
@media (max-width: 600px) {
  .input-group {
    flex-direction: column;
    max-width: 90%;
    box-shadow: none;
    border: 0;
    background: transparent;
  }

  .input-group input[type="text"] {
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 8px;
    border: 2px solid #007bff;
    margin-bottom: 12px;
  }

  .input-group button {
    padding: 14px 0;
    border-radius: 8px;
  }

  h1 {
    font-size: 2rem;
    max-width: 100%;
    padding: 0 20px;
  }

  p.subtitle {
    font-size: 1rem;
    max-width: 100%;
    padding: 0 20px;
  }
}

@media (min-width: 768px) {
  .step {
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }

  h1 {
    flex-direction: row;
  }

  h1 span.sub {
    margin-left: 10px;
  }

  p.subtitle {
    white-space: nowrap;
  }
}