/**
 * Component Styles - Reusable UI Components
 */

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(138, 43, 226, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: rgba(138, 43, 226, 0.2);
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 16px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

/* Input */
.input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

/* Game Card */
.game-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(138, 43, 226, 0.3);
    border-color: var(--primary-color);
}

.game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.game-card-content {
    padding: 16px;
}

.game-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
}

.game-card-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* Modal Backdrop */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Modal Content Container */
.modal-content {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(138, 43, 226, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Modal Close Button */
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

/* Auth Modal Styles */
.auth-modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-modal-header h2 {
    font-size: 32px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-modal-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 4px;
}

.auth-tab {
    flex: 1;
    padding: 12px 24px;
    border: none;
    background: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.auth-tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

/* Auth Forms */
.auth-forms {
    margin-bottom: 24px;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.form-group small {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.form-error {
    padding: 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #ef4444;
    font-size: 14px;
    margin-bottom: 16px;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-divider span {
    padding: 0 16px;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
}

/* Auth Success Overlay */
.auth-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.auth-success-message {
    text-align: center;
    color: white;
}

.auth-success-message i {
    font-size: 64px;
    color: #10b981;
    margin-bottom: 16px;
}

.auth-success-message p {
    font-size: 18px;
    font-weight: 600;
}

/* Feedback Modal Styles */
.feedback-modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.feedback-modal-header h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.feedback-modal-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.feedback-game-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(138, 43, 226, 0.1);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 8px;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 500;
}

/* Rating Stars */
.rating-stars {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.rating-stars i {
    font-size: 32px;
    color: #fbbf24;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rating-stars i:hover {
    transform: scale(1.2);
}

.rating-text {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.form-actions .btn {
    flex: 1;
}

/* Feedback Success */
.feedback-success {
    text-align: center;
    padding: 40px 20px;
}

.feedback-success i {
    font-size: 64px;
    color: #10b981;
    margin-bottom: 24px;
}

.feedback-success h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.feedback-success p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

/* Floating Feedback Button */
.floating-feedback-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(138, 43, 226, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-feedback-btn:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 12px 32px rgba(138, 43, 226, 0.6);
}

.floating-feedback-btn:active {
    transform: translateY(-2px) scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .card {
        padding: 20px;
    }

    .modal-content {
        padding: 24px;
        max-width: 100%;
        margin: 10px;
    }

    .auth-modal-header h2 {
        font-size: 24px;
    }

    .auth-tabs {
        flex-direction: column;
        gap: 0;
    }

    .auth-tab {
        padding: 10px 20px;
        font-size: 14px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px 14px;
        font-size: 14px;
    }

    .game-card {
        margin-bottom: 16px;
    }

    .game-card img {
        height: 150px;
    }

    .game-card-content {
        padding: 14px;
    }

    .game-card-title {
        font-size: 16px;
    }

    .game-card-description {
        font-size: 13px;
    }

    .floating-feedback-btn {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .form-actions {
        flex-direction: column;
    }

    .rating-stars i {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .card {
        padding: 16px;
        border-radius: 8px;
    }

    .modal-content {
        padding: 20px;
        margin: 5px;
        border-radius: 12px;
    }

    .auth-modal-header h2 {
        font-size: 20px;
    }

    .auth-tab {
        padding: 8px 16px;
        font-size: 13px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 8px 12px;
        font-size: 13px;
    }

    .game-card img {
        height: 120px;
    }

    .game-card-content {
        padding: 12px;
    }

    .game-card-title {
        font-size: 14px;
    }

    .game-card-description {
        font-size: 12px;
    }

    .floating-feedback-btn {
        bottom: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .rating-stars {
        gap: 4px;
        justify-content: center;
    }

    .rating-stars i {
        font-size: 24px;
    }

    .modal-close {
        width: 36px;
        height: 36px;
        font-size: 24px;
        top: 12px;
        right: 12px;
    }

    .feedback-modal-header h2,
    .auth-modal-header h2 {
        font-size: 18px;
    }

    .feedback-modal-header p,
    .auth-modal-header p {
        font-size: 13px;
    }
}

