/* Video container styles */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 0px;
    height: 0;
    overflow: hidden;
}

.video-container iframe,
.video-container object,
.video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Layout and responsive styles */
* {
    box-sizing: border-box;
}

.responsive {
    padding: 0 5px;
    float: left;
    width: 49.99999%;
}

.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

.blue {
    overflow: hidden;
}

.right-col iframe {
    position: relative;
    top: -50px;
    margin-bottom: -50px;
}

/* STILURI PENTRU BUTONUL NOU - RESPONSIVE */
.stare-partii-btn {
    display: inline-block;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white !important;
    text-decoration: none !important;
    padding: 10px 40px 10px 22px; /* Mai mult padding dreapta pentru săgeată */
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
    margin: 15px 0 15px 0;
    width: auto;
    max-width: 320px; /* Puțin mai lat pentru spațiu */
    min-width: 240px;
    position: relative;
    overflow: hidden;
    line-height: 1.4;
}

.stare-partii-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f618d 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
    color: white !important;
}

.stare-partii-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 5px rgba(52, 152, 219, 0.3);
}

.stare-partii-btn::after {
    content: "➡️";
    position: absolute;
    right: 20px; /* Mai departe de text */
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    opacity: 0.8;
    transition: transform 0.3s ease;
}

.stare-partii-btn:hover::after {
    transform: translateY(-50%) translateX(3px);
}

/* Pentru alinierea la stânga */
.btn-container {
    text-align: left;
    margin: 15px 0;
    padding-left: 0;
}

/* Responsive adjustments pentru buton */
@media (max-width: 768px) {
    .stare-partii-btn {
        padding: 9px 35px 9px 20px; /* Spațiu pentru săgeată */
        font-size: 15px;
        max-width: 300px;
        min-width: 220px;
    }
    
    .stare-partii-btn::after {
        right: 18px; /* Spațiu suficient */
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .stare-partii-btn {
        padding: 8px 32px 8px 18px; /* Spațiu pentru săgeată */
        font-size: 14px;
        max-width: 280px;
        min-width: 200px;
    }
    
    .stare-partii-btn::after {
        right: 16px; /* Spațiu suficient */
        font-size: 14px;
    }
    
    .btn-container {
        text-align: left;
    }
}

/* Pentru text mai lung - buton mai lat */
.stare-partii-btn.long-text {
    max-width: 350px;
    padding-right: 45px; /* Extra spațiu pentru săgeată */
}

/* Animatie subtilă la hover pentru buton */
@keyframes btnPulse {
    0% { box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3); }
    50% { box-shadow: 0 2px 10px rgba(52, 152, 219, 0.4); }
    100% { box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3); }
}

.stare-partii-btn {
    animation: btnPulse 3s infinite;
}

/* Piste styles */
.piste-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.pista-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pista-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.pista-header {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e1e8ed;
}

.difficulty-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 10px;
}

.bluo {
    background-color: #3498db;
}

.red {
    background-color: #e74c3c;
}

.black {
    background-color: #2c3e50;
}

.pista-title {
    font-size: 1.4rem;
    color: #2c3e50;
}

.pista-content {
    padding: 20px;
}

.pista-info {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.pista-info i {
    margin-right: 10px;
    color: #3498db;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.pista-info p {
    margin: 0;
}

.nocturna {
    display: inline-block;
    background-color: #9b59b6;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-top: 5px;
}

/* Banners styles */
.banners-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.banner-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.banner-card img {
    width: 100%;
    height: 180px;
    display: block;
}

/* Gallery styles */
div.gallery {
    background: rgba(250, 235, 215, 0.2);
    border-radius: 10px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 0px;
    padding-top: 0px;
    padding-left: 0px;
    padding-right: 0px;
}

div.gallery:hover {
    border: 1px solid #777;
}

.new {
    padding: 0 5px;
    float: left;
    width: 33%;
}

/* Responsive styles */
/* Tablet and below */
@media only screen and (max-width: 992px) {
    .responsive {
        width: 49.99999%;
        float: left;
    }
    
    .new {
        width: 33.99999%;
        float: left;
    }
    
    .piste-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .banners-container {
        grid-template-columns: 1fr;
    }
}

/* Small tablets / large phones */
@media only screen and (max-width: 768px) {
    .responsive {
        width: 49.99999%;
        margin: 6px 0;
    }
    
    .new {
        width: 100%;
        margin: 6px 0;
    }
    
    .piste-container {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2rem;
    }
}

/* Mobile phones */
@media only screen and (max-width: 500px) {
    .responsive {
        width: 100%;
        margin-bottom: 10px; /* 👈 space between stacked blocks */
    }
    
    .clearfix {
        margin-bottom: -20px; /* 👈 space between rows of webcams */
    }
    
    .new {
        width: 100%;
    }
}