@import "./intro-overlay.css";
@import "./launch.css";
@import "./header.css";
@import "./tour.css";
@font-face {
    font-family: 'Tamil';
    src: url('../assets/fonts/tamil-sangam-mn-bold.otf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* #website{

    display:none;

} */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html,
body{
    width:100%;
    height:100%;
    overflow:hidden;
    font-family: 'Tamil', serif;
}

#website{

    position:fixed;

    inset:0;

    z-index:10;

    overflow-y:auto;

    overflow-x:hidden;

    display: none;

}

#scene-container{

    position:fixed;

    inset:0;

    z-index:0;

}

canvas{
    display:block;
    -webkit-tap-highlight-color: transparent; 
    touch-action: none;
}

/* #tooltip{

    position: fixed;

    top: 0;
    left: 0;

    padding: 8px 12px;

    background:#111;

    

    border-radius:6px;

   color: white;

    font-family:monospace;

    text-transform:uppercase;

    letter-spacing:2px;

    box-shadow:
        0 0 10px rgba(255,174,0,.3);
    pointer-events: none;

    opacity: 0;

    transform: translate(
        12px,
        12px
    );

    transition: opacity .2s ease;

    z-index: 9999;

} */

#tooltip{

    position: fixed;

    pointer-events: none;

    opacity: 0;

    transform: translateY(10px);

    transition:
        opacity .25s ease,
        transform .25s ease;

    z-index: 9999;

}

#tooltip.visible{

    opacity: 1;

    transform: translateY(0);
    pointer-events: auto;

}

.tooltip-content{

    display:flex;

    flex-direction:column;

    gap:12px;

    min-width:220px;

    max-width:260px;

    padding:16px;

    background:rgb(15, 15, 15);

    backdrop-filter:blur(10px);

    border:1px solid rgba(255, 253, 253, 0.748);

    box-shadow:

        0 10px 30px rgba(0,0,0,.45);

}

.tooltip-title{

    color:white;

    white-space:pre-line;

    font-size:15px;

    font-weight:600;

    line-height:1.4;

}

.tooltip-button{

    display:none;

    border:none;

    cursor:pointer;

    padding:10px 14px;

    background:#FFD600;

    color:#111;

    font-weight:700;

    transition:.2s;

}

.tooltip-button:hover{

    transform:translateY(-1px);

    filter:brightness(1.05);

}

#tooltip.mobile{

    left: 50% !important;
    top: auto !important;
    bottom: 120px;

    transform: translate(-50%, 10px);

}

#tooltip.mobile.visible{

    transform: translate(-50%, 0);

}

#now-playing{

    position:fixed;

    bottom:20px;

    left:20px;

    padding:12px 16px;

    background:rgba(0,0,0,.85);

    color:white;

    

    display:none;

    z-index:9999;

}

#now-playing strong{

    display:block;

    margin-top:4px;

}

/* ==========================
   SPOTIFY PLAYER
========================== */

#spotify-player{
    position:fixed;

    bottom:20px;

    left:50%;

    transform:
        translateX(-50%)
        translateY(30px);

    opacity:0;

    visibility:hidden;

    pointer-events:none;

    transition:

        opacity .35s ease,

        transform .35s ease,

        visibility .35s ease;

   background-color: rgba(0, 0, 0, 0.912);
   width: 80vw;
   padding: 1rem 2rem;
   border: 2px solid white;
   z-index: 9999;

}

#spotify-close{

    position:absolute;

    top:12px;

    right:14px;

    width:28px;

    height:28px;

    border:none;

    border-radius:50%;

    background:transparent;

    color:#b3b3b3;

    cursor:pointer;

    font-size:16px;

    display:flex;

    align-items:center;

    justify-content:center;

    transition:all .2s ease;

}

#spotify-close:hover{

    color:#fff;

    background:rgba(255,255,255,.08);

    transform:scale(1.05);

}

#spotify-player.active{

    opacity:1;

    visibility:visible;

    pointer-events:auto;

    transform:
        translateX(-50%)
        translateY(0);

}




.spotify-container{
    display: flex;
}

/* ==========================
   COVER
========================== */

#spotify-cover{
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

/* ==========================
   INFO TRACK
========================== */

.spotify-track-info{
    flex-shrink: 0;
    overflow: hidden;
}

.spotify-track-title{
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotify-track-artist{
    color: #b3b3b3;
    font-size: 13px;
    margin-top: 4px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================
   CENTER
========================== */

.spotify-center{
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* ==========================
   CONTROLS
========================== */

.spotify-controls{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
}

.spotify-controls button{
    background: none;
    border: none;

    color: #b3b3b3;
    cursor: pointer;

    font-size: 18px;
    padding: 0;

    transition: all .2s ease;
}

.spotify-controls button:hover{
    color: #fff;
    transform: scale(1.08);
}

/* PLAY BUTTON */

#spotify-toggle{
    width: 36px;
    height: 36px;

    border-radius: 50%;

    background: #fff !important;
    color: #000 !important;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 14px;
    font-weight: bold;

    transition: all .2s ease;
}

#spotify-toggle:hover{
    transform: scale(1.08);
}

/* ==========================
   PROGRESS
========================== */

.spotify-progress-wrapper{
    width: 100%;
    max-width: 900px;

    display: flex;
    align-items: center;

    gap: 12px;
}

.spotify-progress{
    flex: 1;

    height: 4px;

    background: #4d4d4d;
    border-radius: 999px;

    overflow: hidden;
    position: relative;
}

.spotify-progress-fill{
    width: 0%;
    height: 100%;

    background: #fff;
    border-radius: 999px;

    position: relative;
    transition: width .1s linear;
}

/* bolita al hover */

.spotify-progress-fill::after{
    content: "";

    position: absolute;
    right: 0;
    top: 50%;

    width: 10px;
    height: 10px;

    border-radius: 50%;
    background: #fff;

    transform: translate(50%, -50%);
    opacity: 0;

    transition: opacity .2s ease;
}

.spotify-progress:hover .spotify-progress-fill::after{
    opacity: 1;
}

/* ==========================
   TIME
========================== */

#current-time,
#duration-time{
    color: #b3b3b3;
    font-size: 11px;

    min-width: 40px;
    text-align: center;
}

/* ==========================
   MOBILE
========================== */

@media (max-width:768px){

    #spotify-player{
        width: 95%;
        padding: 12px;
        gap: 10px;
    }

    #spotify-cover{
        width: 48px;
        height: 48px;
    }

    .spotify-track-info{
        width: 120px;
    }

    .spotify-track-title{
        font-size: 14px;
    }

    .spotify-track-artist{
        font-size: 11px;
    }

    .spotify-controls{
        gap: 12px;
    }

    .spotify-controls button{
        font-size: 15px;
    }

    #spotify-toggle{
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .spotify-progress-wrapper{
        gap: 8px;
    }

    #current-time,
    #duration-time{
        min-width: 30px;
        font-size: 10px;
    }
}

.spotify-actions{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:14px;

    margin-top:12px;

}

.spotify-action,
.spotify-share-icons button{

    width:38px;

    height:38px;

    border:none;

    display:flex;

    justify-content:center;

    align-items:center;

    transition:.2s;

}


.spotify-share-icons button:hover{

    background:#FFD600;

    transform:scale(1.08);

}

.spotify-share-icons{

    display:flex;

    gap:10px;

}

.spotify-action img{
   width: 30px;
   height: 30px;
}


.spotify-actions button{

    background:rgba(255, 255, 255, 0.935);

    color:white;

    border:none;

    

    padding:8px 8px;

    cursor:pointer;

    transition:.2s;

}

.spotify-actions button:hover{

    background:#FFD600;

    color:#111;

}

#share-panel{

    position:absolute;

    bottom:90px;

    right:20px;

    opacity:0;

    visibility:hidden;

    transform:translateY(10px);

    transition:.25s;

}

#share-panel.active{

    opacity:1;

    visibility:visible;

    transform:translateY(0);

}

.controls-actions{
    display: flex;
    flex-direction: column;
    width: 70%;
}

#share-panel{

    position:fixed;

    bottom:110px;

    right:40px;

    display:flex;

    flex-direction:column;

    gap:10px;

    padding:14px;

    

    background:rgba(15,15,15,.95);

    backdrop-filter:blur(12px);

    border:1px solid rgba(255,255,255,.08);

    box-shadow:

        0 12px 30px rgba(0,0,0,.45);

    opacity:0;

    visibility:hidden;

    transform:translateY(10px);

    transition:.25s;

    z-index:99999;

}

#share-panel.active{

    opacity:1;

    visibility:visible;

    transform:translateY(0);

}

#share-panel button{

    background:none;

    border:none;

    color:white;

    cursor:pointer;

    text-align:left;

    padding:10px;

    

    transition:.2s;

}

#share-panel button:hover{

    background:#FFD600;

    color:#111;

}

#share-panel button{

    display:flex;

    align-items:center;

    gap:10px;

    width:100%;

}

#toast{

    position:fixed;

    right:30px;

    bottom:30px;

    display:flex;

    align-items:center;

    gap:12px;

    padding:14px 18px;

    

    background:rgba(20,20,20,.95);

    color:white;

    border:1px solid rgba(255,255,255,.08);

    backdrop-filter:blur(12px);

    box-shadow:

        0 15px 35px rgba(0,0,0,.45);

    transform:translateY(25px);

    opacity:0;

    pointer-events:none;

    transition:.25s;

    z-index:999999;

}

#toast.active{

    opacity:1;

    transform:translateY(0);

}

.toast-icon{

    width:28px;

    height:28px;

    

    display:flex;

    justify-content:center;

    align-items:center;

    background:#FFD600;

    color:#ffffff;

    font-weight:bold;

}

.share-icon{

    width:10px;

    height:10px;

}

.spotify-share-button{

    width:34px;

    height:34px;

    border: 2px solid black;

    background:transparent;

    display:flex;

    justify-content:center;

    align-items:center;

    cursor:pointer;

    transition:.25s;

}

.spotify-share-button:hover{

    transform:translateY(-2px) scale(1.08);

    background:rgba(255,255,255,.08);

}

#spotify-download{
  width: 38px;
  height: 38px;
}

#spotify-download img{
    width: 100%;
    height: 100%;
}



#orientation-overlay{

    position:fixed;

    inset:0;

    display:flex;

    justify-content:center;

    align-items:center;

    background:rgba(0, 0, 0, 0.958);

    opacity:0;

    pointer-events:none;

    transition:.3s;

    z-index:9999;

}

#orientation-overlay.visible{

    opacity:1;

}

.orientation-content {
    color: #fff;
}

.tutorial-button{

    position:fixed;

    right:30px;

    bottom:30px;

    width:56px;

    height:56px;

    border:none;

    border-radius:50%;

    cursor:pointer;

    font-size:24px;

    z-index:1000;

}

.tutorial-overlay{

    position:fixed;

    inset:0;

    display:flex;

    justify-content:center;

    align-items:center;

    background:rgba(0,0,0,.75);

    opacity:0;

    visibility:hidden;

    transition:.3s;

    z-index:2000;

}

.tutorial-overlay.active{

    opacity:1;

    visibility:visible;

}

.tutorial-modal{

    position:relative;

    width:min(900px,90vw);

}

.tutorial-video{

    width:100%;

    display:block;

    border-radius:12px;

}

.tutorial-close{

    position:absolute;

    top:-15px;

    right:-15px;

    width:40px;

    height:40px;

    border:none;

    border-radius:50%;

    cursor:pointer;

    z-index:10;

}


.home-page{

    min-height:100vh;

    background:red;

    color:white;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:60px;

}

.site-layout{

    min-height:100vh;

    display:flex;

    flex-direction:column;
    background-color: #000;

}

.site-content{

    flex:1;

}


/* Aviso de nueva publicación (js/ui/UpdateNotice.js) */

#update-notice{

    position:fixed;

    left:30px;

    bottom:30px;

    max-width:340px;

    display:flex;

    flex-direction:column;

    gap:8px;

    padding:16px 18px;

    background:rgba(20,20,20,.95);

    color:white;

    border:1px solid rgba(255,255,255,.08);

    border-left:3px solid #FFD600;

    backdrop-filter:blur(12px);

    box-shadow:0 15px 35px rgba(0,0,0,.45);

    transform:translateY(25px);

    opacity:0;

    transition:.25s;

    z-index:999999;

}

#update-notice.active{

    opacity:1;

    transform:translateY(0);

}

.update-notice-title{

    font-size:15px;

}

.update-notice-message{

    font-size:13px;

    line-height:1.4;

    opacity:.85;

}

.update-notice-button{

    align-self:flex-start;

    margin-top:4px;

    padding:8px 14px;

    background:#FFD600;

    color:#111;

    border:none;

    font-weight:600;

    cursor:pointer;

}

@media (max-width:600px){

    #update-notice{

        left:12px;

        right:12px;

        bottom:12px;

        max-width:none;

    }

}
