@import url('./index.css');

.ad-banner{
    width: 50%;
    padding-bottom: 15px;
}

main {
    width: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    /* padding: 20px; */
    min-height: calc(60vh - 160px);
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

main::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    z-index: -1;
}

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

.game-detail-container {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.game-main-content {
    flex-direction: column;
    background: rgba(26, 26, 26, 0.85);
    border-radius: 10px;
    padding: 20px;
    gap: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-main-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.game-banner img {
    width: 100%;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.game-banner img:hover {
    transform: scale(1.02);
}

.game-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.game-title {
    font-size: 2rem;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-meta {
    display: flex;
    gap: 15px;
    color: #ccc;
    font-size: 0.9rem;
}

.game-meta span {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 15px;
    transition: background 0.3s ease;
}

.game-meta span:hover {
    background: rgba(255, 255, 255, 0.2);
}

.game-description {
    color: #ddd;
    line-height: 1.6;
    font-size: 1rem;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.game-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.play-btn, .favorite-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.play-btn {
    background-color: #ff6b00;
    color: white;
    flex: 1;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
}

.play-btn:hover {
    background-color: #e55e00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.6);
}

.play-btn:active {
    transform: translateY(0);
}

.favorite-btn {
    background-color: #333;
    color: white;
    flex: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.favorite-btn:hover {
    background-color: #444;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.favorite-btn:active {
    transform: translateY(0);
}

.play-btn::after, .favorite-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.play-btn:focus:not(:active)::after, .favorite-btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(50, 50);
        opacity: 0;
    }
}

.game-sidebar {
    background: rgba(26, 26, 26, 0.85);
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.game-sidebar h2 {
    color: white;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.game-sidebar h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #ff6b00;
    border-radius: 3px;
}

.similar-game-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #333;
    transition: background 0.3s ease;
    cursor: pointer;
}

.similar-game-item:last-child {
    border-bottom: none;
}

.similar-game-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding-left: 10px;
}

.similar-game-item img {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.similar-game-item:hover img {
    transform: scale(1.1);
}

.similar-game-item p {
    color: white;
    margin: 0;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.similar-game-item:hover p {
    color: #ff6b00;
}

@media screen and (min-width: 768px) {
    .game-detail-container {
        width: 100%;
        flex-direction: row;
    }
    
    .game-main-content {
        flex: 3;
    }
    
    .game-sidebar {
        flex: 1;
    }
    
    .game-banner img {
        max-height: 400px;
        object-fit: cover;
    }
    
    .game-info {
        max-width: 1200px;
    }
    
    .similar-game-item {
        flex-direction: column;
        text-align: center;
        padding: 15px;
        border-bottom: none;
        background: rgba(42, 42, 42, 0.7);
        border-radius: 8px;
        margin-bottom: 15px;
    }
    
    .similar-game-item img {
        width: 100%;
        height: auto;
        max-width: 120px;
    }
}

@media screen and (min-width: 1024px) {
    main {
        padding: 30px 50px;
    }
    
    .game-main-content {
        flex-direction: row;
        gap: 30px;
    }
    
    .game-banner {
        flex: 1;
    }
    
    .game-banner img {
        max-height:none;
        height: 100%;
        object-fit: cover;
    }
    
    .game-info {
        flex: 1;
    }
}

.about-us {
    background: rgba(26, 26, 26, 0.85);
    border-radius: 10px;
    padding: 30px;
    margin: 20px auto;
    /* max-width: 1200px; */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.about-content h2 {
    color: #ff6b00;
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}

.about-content h3 {
    color: #fff;
    font-size: 1.5rem;
    margin: 25px 0 15px 0;
}

.about-content h4 {
    color: #ddd;
    font-size: 1.2rem;
    margin: 20px 0 10px 0;
}

.about-content p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 1rem;
}

.about-content ul {
    color: #ccc;
    margin: 15px 0 15px 20px;
}

.about-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.thank-you {
    text-align: center;
    font-weight: bold;
    margin-top: 30px;
    font-size: 1.1rem;
    color: #ff6b00;
}

@media screen and (min-width: 768px) {
    .about-us {
        padding: 40px;
        margin: 30px auto;
    }
    
    .about-content h2 {
        font-size: 2.5rem;
    }
    
    .about-content h3 {
        font-size: 1.8rem;
    }
}

@media screen and (min-width: 1024px) {
    .about-us {
        padding: 50px;
        margin: 40px auto;
    }
}

@media screen and (max-width: 768px) {
    .ad-banner {
        width: 100%;

    }
}