/* =====================================================
   YouTube Post Embed — Frontend Styles
   ===================================================== */

/* ---------- Variables ---------- */
:root {
  --ype-red: #005150;
  --ype-red-dark: #005150;
  --ype-dark: #1a1a1a;
  --ype-gray: #6b6b6b;
  --ype-light: #f5f5f5;
  --ype-border: #e0e0e0;
  --ype-white: #ffffff;
  --ype-success: #2e7d32;
  --ype-success-bg: #e8f5e9;
  --ype-error: #000000;
  --ype-error-bg: #ffebee;
  --ype-radius: 12px;
  --ype-shadow: 0 4px 24px rgba(0,0,0,0.10);
  --ype-transition: 0.22s cubic-bezier(.4,0,.2,1);
}

/* =====================================================
   IFRAME EMBED
   ===================================================== */

.ype-video-wrapper {
  margin: 2.5rem 0;
  border-radius: var(--ype-radius);
  overflow: hidden;
  box-shadow: var(--ype-shadow);
  background: var(--ype-dark);
}

.ype-video-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--ype-red);
  color: var(--ype-white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ype-yt-logo {
  font-size: 16px;
  line-height: 1;
}

/* Aspect ratio 16:9 responsive */
.ype-iframe-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  background: #000;
}

.ype-iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* =====================================================
   FRONTEND FORM
   ===================================================== */

.ype-frontend-form {
  margin: 2.5rem 0;
  padding: 28px 32px;
  background: var(--ype-white);
  border: 1.5px solid var(--ype-border);
  border-radius: var(--ype-radius);
  box-shadow: var(--ype-shadow);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ype-form-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--ype-dark);
  border-bottom: 2px solid var(--ype-light);
  padding-bottom: 14px;
}

.ype-icon {
  font-size: 20px;
}

/* Messages */
.ype-message {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ype-message::before {
  font-size: 16px;
}

.ype-message--success {
  background: var(--ype-success-bg);
  color: var(--ype-success);
  border: 1px solid #a5d6a7;
}

.ype-message--success::before {
  content: '✓';
}

.ype-message--error {
  background: var(--ype-error-bg);
  color: var(--ype-error);
  border: 1px solid #ef9a9a;
}

.ype-message--error::before {
  content: '✕';
}

/* Field */
.ype-field {
  margin-bottom: 20px;
}

.ype-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 300;
    color: var(--ype-dark);
    font-family: 'NeueFrutigerWorldThin';
    text-transform: uppercase;
}

.ype-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.ype-input-icon {
  position: absolute;
  left: 14px;
  color: var(--ype-red);
  font-size: 14px;
  pointer-events: none;
  z-index: 1;
}

.ype-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--ype-border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--ype-dark);
  background: var(--ype-light);
  transition: border-color var(--ype-transition), box-shadow var(--ype-transition), background var(--ype-transition);
  outline: none;
  box-sizing: border-box;
}

.ype-input:focus {
  border-color: var(--ype-red);
  background: var(--ype-white);
  box-shadow: 0 0 0 3px rgba(255,0,0,0.10);
}

.ype-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--ype-gray);
}

/* Buttons */
.ype-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ype-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  border: none;
  border-radius: 0px;
  font-size: 14px;
  cursor: pointer;
  transition: background var(--ype-transition), transform var(--ype-transition), box-shadow var(--ype-transition);
  letter-spacing: 0;
  line-height: 8px;
  height: 35px;
}

.ype-btn:active {
  transform: scale(0.97);
}

.ype-btn--primary {
  background: var(--ype-red);
  color: var(--ype-white);
}

.ype-btn--primary:hover {
  background: var(--ype-red-dark);
}

.ype-btn--danger {
  background: #000000;
  color: #ffffff;
  border: 1.5px solid #000000;
}

.ype-btn--danger:hover {
  background: var(--ype-error-bg);
}

/* Login notice */
.ype-login-notice {
  padding: 14px 18px;
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 8px;
  color: #5d4037;
  font-size: 14px;
  font-weight: 500;
}
.ype-response {
    
    color: #ffffff;
    text-align: center;
    font-family: 'NeueFrutigerWorldThin';
    font-size: 20px;
    padding: 10px;
	margin-top: 20px;
}
.error{
background: var(--ype-error);	
}
.valide{
background: var(--ype-red);	
}
input#submit_media {
    background-color: var(--ype-red);
    color: #ffffff;
    border: var(--ype-red);
}
/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 600px) {
  .ype-frontend-form {
    padding: 20px 18px;
  }

  .ype-actions {
    flex-direction: column;
  }

  .ype-btn {
    justify-content: center;
    width: 100%;
  }
}
