:root{
    --red:#510804;
    --glass-bg:rgba(255,255,255,0.14);
    --glass-border:rgba(255,255,255,0.28);
}

/* RESET */
*{
    box-sizing:border-box;
    margin:0;
    padding:0;
    font-family:Arial, Helvetica, sans-serif;
}

html, body{
    min-height:100%;
    overflow-y:auto;
    padding-bottom:100px;
    background:var(--red);
    color:#f7f7f7;
}

/* =========================
   BACKGROUND – DESKTOP
========================= */
body::before{
    content:"";
    position:fixed;
    inset:-5%;
    background:url("../images/logo.png") center/42% no-repeat;
    opacity:0;
    filter:blur(0.5px);
    z-index:0;
    pointer-events:none;
    animation:bgReveal 1.6s ease-out forwards,
             bgFloat 18s ease-in-out infinite 1.6s;
}

@keyframes bgReveal{
    from{ opacity:0; transform:scale(1.1); }
    to{ opacity:0.6; transform:scale(1); }
}

@keyframes bgFloat{
    0%{ transform:scale(1) translateY(0); }
    50%{ transform:scale(1.03) translateY(-10px); }
    100%{ transform:scale(1) translateY(0); }
}

/* =========================
   HEADER
========================= */
header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:12px 60px;
    max-width:1200px;
    margin:0 auto;
    position:relative;
    z-index:2;
}

.header-left{
    display:flex;
    align-items:center;
    gap:14px;
}

.icon-logo{
    width:72px;
    height:72px;
    background:url("../images/logo.gif") center/contain no-repeat;
    background-color:rgba(0,0,0,0.3);
    border-radius:14px;
}

.site-title{
    font-size:20px;
    font-weight:bold;
    color:#fff;
    letter-spacing:0.3px;
    opacity:0;
    animation:fadeIn 1s forwards 2.0s;
}

.slogan{
    font-size:15px;
    letter-spacing:1.3px;
    opacity:0;
    animation:fadeIn 1s forwards .9s;
    margin-top:7px;
}

/* MAIN */
main{
    max-width:1000px;
    margin:30px auto;
    padding:0 20px;
    position:relative;
    z-index:2;
}

/* GLASS BOX – DESKTOP */
.glass-box{
    background:var(--glass-bg);
    border:2px solid var(--glass-border);
    backdrop-filter:blur(3px);
    border-radius:28px;
    padding:36px;
    line-height:2.25;
    margin-bottom:40px;
    max-width:100%;
    opacity:0;
    transform:translateY(20px);
    animation:fadeIn 3s forwards;
}

/* Κρύβει όλα τα empty glass-box */
.glass-box:empty {
    display: none !important;
}


.glass-box-home{
    background:var(--glass-bg);
    border:2px solid var(--glass-border);
    backdrop-filter:blur(3px);
    border-radius:58px;
    padding:10px;
    line-height:1.50;
    margin-bottom:40px;
    width:fit-content;
    max-width:100%;
    opacity:1;
    transform:translateY(20px);
    animation:fadeIn 5s forwards;
}

/* PAGE SPECIFIC */
body.artradio main .glass-box{ margin-top:100px; }
body.webtv main .glass-box{ margin-top:80px; }
body.contact main .glass-box{ margin-top:120px; }

/* CONTACT FORM */
.contact-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:34px;
}

.contact-item{
    display:flex;
    align-items:center;
    gap:18px;
    font-size:16px;
    margin-bottom:20px;
    justify-content:center;
}

form input::placeholder,
form textarea::placeholder {
    color:rgba(255,255,255,0.75);
}

form input:focus,
form textarea:focus {
    outline:none;
    background:rgba(255,255,255,0.25);
    color:#fff;
}

form input,
form textarea{
    width:100%;
    padding:12px 14px;
    border-radius:16px;
    border:none;
    margin-bottom:16px;
    background:rgba(255,255,255,0.18);
    color:#fff;
    font-family:Arial, Helvetica, sans-serif;
    font-size:15px;
}

form textarea{ height:120px; resize:none; }

form button{
    background:#fff;
    color:#000;
    border:none;
    padding:12px 34px;
    border-radius:26px;
    cursor:pointer;
}

/* PLAYER */
#global-player{
    position:fixed;
    bottom:0;
    left:0;
    width:100%;
    height:92px;
    background:#000;
    border-top:0px solid #fff;
    z-index:999;
}

/* =========================
   MOBILE – GENERAL
========================= */
@media (max-width:768px){
    header{
        flex-direction:column;
        padding:14px 20px;
    }

    .header-left{ justify-content:center; margin-bottom:26px; }

    .site-info{
        flex-direction:column;
        align-items:flex-start;
    }

    .site-title{ font-size:18px; }
    .slogan{ font-size:15px; text-align:left; }

    .contact-grid{ grid-template-columns:1fr; }
    body.contact main .glass-box{ margin-top:126px; }
    body.artradio main .glass-box{ margin-top:-50px; }
    body.webtv main .glass-box{ margin-top:20px; }
    body.contact main .glass-box{ margin-top:-60px; }

    .glass-box{ background:rgba(0, 0, 0, 0.46); backdrop-filter:blur(2px); padding:22px; }
}

/* =========================
   MOBILE – PORTRAIT (iOS fix + scaling)
========================= */
@media (max-width: 768px) and (orientation: portrait) {
    body::before {
        content: "";
        position: fixed;
        top: 1;
        left: 0;
        width: 110%;
        height: 110%;
        background-image:url("../images/logo.png");
        background-position:center;
        background-repeat:no-repeat;
        background-size: 110% !important;
        opacity:0.85 !important;
        filter:blur(0) !important;
        z-index:0;
        pointer-events:none;
        animation:bgRevealPortrait 1.4s ease-out forwards,
                  bgFloatPortrait 14s ease-in-out infinite 1.4s;
    }
}

/* =========================
   MOBILE – LANDSCAPE (iOS fix + scaling)
========================= */
@media (max-width: 768px) and (orientation: landscape) {
    body::before {
        content:"";
        position: fixed;
        top:0;
        left:0;
        width: 10%;
        height: 10%;
        background-image: url("../images/logo.png");
        background-position:center;
        background-repeat:no-repeat;
        background-size: 20% !important;
        opacity:0.8 !important;
        filter:blur(0) !important;
        z-index:0;
        pointer-events:none;
        animation:bgRevealLandscape 1.4s ease-out forwards,
                  bgFloatLandscape 14s ease-in-out infinite 1.4s;
    }
}

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

/* ================== HAMBURGER MENU & NAV ================== */
.menu-toggle{
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    width:30px;
    height:22px;
    cursor:pointer;
    z-index:1000;
}

.menu-toggle span{
    display:block;
    height:4px;
    background:#fff;
    border-radius:2px;
    transition:0.3s;
}

.nav-menu {
    position: fixed;
    top:0;
    right:-100%;
    width:290px;
    max-height: 100vh;      /* Ορατό ύψος στην οθόνη iOS */
    overflow-y: auto;       /* Scroll αν δεν χωράει */
    background:rgba(4, 4, 4, 0.55);
    backdrop-filter:blur(6px);
    padding:50px 30px 30px 30px;
    display:flex;
    flex-direction:column;
    gap:30px;
    transition:right 0.4s ease;
    z-index: 20;
}


.nav-menu.active {
    right:0;
}

.nav-menu .nav-logo{
    display:flex;
    justify-content:center;
    margin-bottom:30px;
}

.nav-menu .nav-logo .icon-logo{
    width:50px;
    height:50px;
    background:url("../images/logo.gif") center/contain no-repeat;
    border-radius:12px;
}

.menu-title{
    font-size:18px;
    font-weight:normal;
    color:#fff;
    margin-left:8px;
    margin-top:16px;
    font-family:Arial, Helvetica, sans-serif;
}

.nav-menu ul{
    list-style:none;
    display:flex;
    flex-direction:column;
    gap:20px;
}

.nav-menu ul li a{
    text-decoration:none;
    color:#fff;
    font-family:Arial, Helvetica, sans-serif;
    font-size:17px;
    transition:0.3s;
    pointer-events:auto; /* iOS fix */
}

.nav-menu ul li a:hover{ color:#BA071F; }

.menu-toggle.active span:nth-child(1){ transform:rotate(55deg) translate(5px,5px); }
.menu-toggle.active span:nth-child(2){ opacity:0; }
.menu-toggle.active span:nth-child(3){ transform:rotate(-55deg) translate(5px,-5px); }

/* Mobile toggle adjustments */
@media (max-width:1024px){
    .menu-toggle{
        position: fixed;
        top: 18px;
        right: 20px;
        z-index: 10000; 
    }
    .menu-toggle span{ height: 4px; }
}

/* header και menu */
header{ position: relative; z-index: 10; }

/* =========================
   PLAYER & TOGGLE BUTTON
========================= */
/* Wrapper fixed στο bottom */
  #player-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 92px;
    overflow: hidden;
    z-index: 9998;
    transition: transform 0.4s ease;
  }

  #player-wrapper.hidden {
    transform: translateY(100%);
  }

  /* Player iframe μέσα στο wrapper */
  #global-player {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 92px; /* σταθερό */
  z-index: 9998;
  transition: transform 0.4s ease;
}

#global-player.hidden {
  transform: translateY(100%);
}

  /* Toggle button σταθερό */
  #player-toggle {
  position: fixed;
  bottom: 80px;
  left: 20px;
  width: 44px;
  height: 44px;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #610905;
  color: #fff;
  border-radius: 6px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.3);
  cursor: pointer;
  z-index: 9999;
}


  #player-toggle:hover {
    background-color: #7f0c06;
  }

  /* Responsive */
  @media (max-width:768px){
    #player-wrapper { height: 70px; }
    #player-toggle { width:40px; height:40px; font-size:20px; }
  }

.player-anim {
  animation-duration: 0.8s;
  animation-timing-function: ease-out;
}



@keyframes slideLeft {
  from { transform: translateX(-120%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

@keyframes scaleIn {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

@keyframes spinDrop {
  0%   { transform: rotate(-720deg) translateY(-300%); opacity: 0; }
  60%  { transform: rotate(30deg) translateY(20%); opacity: 1; }
  100% { transform: rotate(0deg) translateY(0); }
}

@keyframes bounceIn {
  0%   { transform: translateY(-200%) scale(0.5); opacity: 0; }
  50%  { transform: translateY(20%) scale(1.2); opacity: 1; }
  70%  { transform: translateY(-10%) scale(0.95); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes zigzagDrop {
  0%   { transform: translate(-100%, -200%) rotate(-15deg); opacity: 0; }
  25%  { transform: translate(20%, -150%) rotate(15deg); opacity: 1; }
  50%  { transform: translate(-15%, -100%) rotate(-10deg); }
  75%  { transform: translate(10%, -50%) rotate(5deg); }
  100% { transform: translate(0,0) rotate(0); }
}

@keyframes explodeIn {
  0%   { transform: scale(0) rotate(-45deg); opacity: 0; }
  50%  { transform: scale(1.3) rotate(10deg); opacity: 1; }
  70%  { transform: scale(0.9) rotate(-5deg); }
  100% { transform: scale(1) rotate(0); }
}

/* =========================
   GLOBAL PLAYER EFFECTS
========================= */
#global-player.player-anim {
    will-change: transform, opacity;
}

#global-player.slideLeft {
    animation: slideLeft 0.8s ease-out;
}

#global-player.scaleIn {
    animation: scaleIn 0.8s ease-out;
}

#global-player.spinDrop {
    animation: spinDrop 0.8s ease-out;
}

#global-player.bounceIn {
    animation: bounceIn 0.8s ease-out;
}

#global-player.zigzagDrop {
    animation: zigzagDrop 0.8s ease-out;
}

#global-player.explodeIn {
    animation: explodeIn 0.8s ease-out;
}

/* ======================================
   CAPTCHA STYLING
   ====================================== */

.captcha-box {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(186, 7, 31, 0.03) 0%, rgba(186, 7, 31, 0.08) 100%);
    border-radius: 12px;
    border: 2px solid rgba(186, 7, 31, 0.15);
    transition: all 0.3s ease;
}

.captcha-box:hover {
    border-color: rgba(186, 7, 31, 0.3);
    box-shadow: 0 4px 15px rgba(186, 7, 31, 0.1);
}

.captcha-box label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #F2D0D5;
    font-size: 15px;
}

.captcha-box label i {
    margin-right: 8px;
}

.captcha-box #math-question {
    display: inline-block;
    font-size: 1.4em;
    font-weight: bold;
    color: #333;
    background: white;
    padding: 5px 15px;
    border-radius: 8px;
    margin: 0 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.captcha-box input[type="number"] {
    width: 100%;
    max-width: 150px;
    padding: 12px 15px;
    border: 2px solid #ee2f2f;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    transition: all 0.3s ease;
    background: #a2a2a2;
}

.captcha-box input[type="number"]:focus {
    outline: none;
    border-color: #BA071F;
    box-shadow: 0 0 0 3px rgba(186, 7, 31, 0.1);
}

/* Form Status Messages */
.form-status {
    display: none;
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    animation: slideIn 0.3s ease;
}

.form-status.success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.form-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .captcha-box {
        padding: 15px;
    }
    
    .captcha-box #math-question {
        font-size: 1.2em;
        padding: 4px 12px;
    }
    
    .captcha-box input[type="number"] {
        max-width: 100%;
    }
}