:root {
    --primary: #6c5ce7;
    --primary-light: #a29bfe;
    --secondary: #fd79a8;
    --dark: #2d3436;
    --light: #f5f6fa;
    --success: #00b894;
    --warning: #fdcb6e;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #333333;
    --text-light: #777777;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

/* Developer Info Section */
.developer-info {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 15px;
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transition: all 0.3s ease;
    cursor: pointer;
}

.developer-info:hover {
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.developer-pic {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-light);
}

.developer-name {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--dark);
}

/* Developer Options */
.developer-options {
    position: absolute;
    top: 70px;
    left: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    z-index: 100;
    display: none;
    width: 250px;
}

.developer-options.show {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

.dev-team {
    padding: 10px 15px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 5px;
}

.dev-team-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.dev-member {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    transition: all 0.2s;
}

.dev-member:hover {
    background-color: rgba(108, 92, 231, 0.1);
}

.dev-member-pic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-light);
}

.dev-member-info {
    flex: 1;
}

.dev-member-name {
    font-size: 0.9rem;
    font-weight: 500;
}

.dev-member-role {
    font-size: 0.7rem;
    color: var(--text-light);
}

.dev-option {
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dev-option:hover {
    background-color: var(--primary-light);
    color: white;
}

.dev-option i {
    width: 20px;
    text-align: center;
}

/* Button Styles */
.button-container {
    display: flex;
    gap: 15px;
    width: 100%;
    margin-top: 20px;
    position: sticky;
    bottom: 0;
    padding: 20px 0;
    background: linear-gradient(to top, var(--card-bg) 80%, transparent);
    z-index: 10;
}

.btn {
    flex: 1;
    padding: 16px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.btn i {
    font-size: 1.1rem;
}

.btn-secondary {
    background-color: var(--secondary);
}

.btn-secondary:hover {
    background-color: #e84393;
}

/* Locked buttons */
.btn.locked {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
    overflow: hidden;
    background-color: #ccc;
    box-shadow: none;
}

.btn.locked::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.3);
}

.btn.locked::before {
    content: "\f023";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    z-index: 2;
}

.btn.unlock-animation {
    animation: unlockPulse 0.8s ease-out;
}

@keyframes unlockPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(108, 92, 231, 0.7); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(108, 92, 231, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(108, 92, 231, 0); }
}

.btn-tooltip {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: normal;
    opacity: 0;
    transition: opacity 0.3s;
    width: max-content;
    pointer-events: none;
}

.btn.locked:hover .btn-tooltip {
    opacity: 1;
}

/* Rest of your existing styles... */
header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

header h1 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 2.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

header p {
    color: var(--text-light);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

.app-container {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }
    
    .developer-info {
        position: static;
        margin-bottom: 20px;
        justify-content: center;
    }

    .developer-options {
        left: 50%;
        transform: translateX(-50%);
        top: 180px;
    }

    .button-container {
        flex-direction: column;
        padding: 15px 0;
    }
}

.chat-section {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    position: relative;
}

.chat-container {
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.chat-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-header h3 {
    font-size: 1.3rem;
    color: var(--primary);
}

.chat-header .status {
    width: 10px;
    height: 10px;
    background-color: var(--success);
    border-radius: 50%;
    margin-left: auto;
}

.chat-box {
    flex: 1;
    height: 400px;
    max-height: 400px;
    overflow-y: auto;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
    background-color: rgba(245, 246, 250, 0.7);
    scroll-behavior: smooth;
}

.message {
    max-width: 80%;
    margin-bottom: 15px;
    padding: 12px 18px;
    border-radius: 18px;
    position: relative;
    animation: messageIn 0.3s ease-out;
    line-height: 1.5;
    font-size: 0.95rem;
}

@keyframes messageIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.bot-message {
    background-color: var(--primary-light);
    color: white;
    border-radius: 18px 18px 18px 4px;
    align-self: flex-start;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.user-message {
    background-color: var(--primary);
    color: white;
    border-radius: 18px 18px 4px 18px;
    align-self: flex-end;
    margin-left: auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.message-time {
    display: block;
    font-size: 0.7rem;
    opacity: 0.8;
    margin-top: 5px;
    text-align: right;
}

.input-area {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.input-area input, .input-area select {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
    background-color: var(--card-bg);
}

.input-area input:focus, .input-area select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

.filter-section {
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin-bottom: 30px;
}

.filter-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-tag {
    background-color: var(--light);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
    user-select: none;
}

.filter-tag:hover {
    background-color: var(--primary-light);
    color: white;
    border-color: var(--primary-light);
}

.filter-tag.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    font-weight: 500;
}

.recommendations-section {
    flex: 1;
    min-width: 0;
}

.recommendations-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.recommendations-title {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 600;
}

.results-count {
    background-color: var(--primary-light);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.game-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.game-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--warning);
    color: var(--dark);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 2;
}

.game-image-container {
    height: 160px;
    position: relative;
    overflow: hidden;
}

.game-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.game-card:hover .game-image {
    transform: scale(1.05);
}

.game-info {
    padding: 15px;
}

.game-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.game-rating {
    color: var(--warning);
    font-weight: 600;
}

.game-description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.game-tag {
    background-color: var(--light);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    color: var(--text-light);
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--primary);
    font-size: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(108, 92, 231, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--primary-light);
}

.empty-state p {
    font-size: 1.1rem;
    max-width: 400px;
    margin: 0 auto;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}
