/* AstroGames Authentication - Early 2000s Compatible Styling */
/* NO CSS3 features - only properties available in early 2000s browsers */

/* Authentication Section */
.auth-section {
    background: #F5F5F5;
    padding: 40px 20px;
    min-height: 500px;
}

.auth-container {
    max-width: 400px;
    margin: 0 auto;
    background: #FFFFFF;
    border: 1px solid #CCCCCC;
    padding: 30px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #EEEEEE;
    padding-bottom: 20px;
}

.auth-header h1 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 24px;
    color: #333333;
    margin: 0 0 10px 0;
    font-weight: bold;
}

.auth-header p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #666666;
    margin: 0;
}

/* Authentication Form */
.auth-form {
    margin: 0;
    padding: 0;
}

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

.form-group label {
    display: block;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: #333333;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #CCCCCC;
    background: #FFFFFF;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #333333;
}

.form-group input:focus {
    border-color: #0066CC;
    background: #F0F8FF;
    outline: none;
}

.form-group input.error {
    border-color: #CC0000;
    background: #FFE6E6;
}

/* Form Help Text */
.form-help {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    color: #666666;
    margin-top: 3px;
    display: block;
}

/* Error Messages */
.error-message {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    color: #CC0000;
    margin-top: 3px;
    display: none;
}

/* Form Options */
.form-options {
    margin: 15px 0;
}

/* Checkbox Container */
.checkbox-container {
    display: block;
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #333333;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
}

.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 12px;
    width: 12px;
    background: #FFFFFF;
    border: 1px solid #CCCCCC;
}

.checkbox-container:hover input ~ .checkmark {
    background: #F0F0F0;
}

.checkbox-container input:checked ~ .checkmark {
    background: #0066CC;
    border-color: #0066CC;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 3px;
    top: 1px;
    width: 3px;
    height: 6px;
    border: solid #FFFFFF;
    border-width: 0 2px 2px 0;
}

/* Forgot Password Link */
.forgot-link {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    color: #0066CC;
    text-decoration: underline;
    float: right;
}

.forgot-link:hover {
    color: #003399;
}

/* Button styles moved to buttons.css for standardization */

.btn-primary {
    background: #0066CC;
    color: #FFFFFF;
    border: 1px outset #0066CC;
}

.btn-primary:hover {
    background: #0052A3;
}

.btn-primary:active {
    border: 1px inset #0066CC;
    background: #003D7A;
}

.btn-full {
    width: 100%;
    margin: 20px 0 10px 0;
}

.btn-small {
    font-size: 11px;
    padding: 4px 8px;
}

.btn-secondary {
    background: #666666;
    color: #FFFFFF;
    border: 1px outset #666666;
}

.btn-secondary:hover {
    background: #555555;
}

.btn-danger {
    background: #CC0000;
    color: #FFFFFF;
    border: 1px outset #CC0000;
}

.btn-danger:hover {
    background: #AA0000;
}

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #EEEEEE;
}

.form-footer p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #666666;
    margin: 0;
}

.form-footer a {
    color: #0066CC;
    text-decoration: underline;
}

.form-footer a:hover {
    color: #003399;
}

/* Loading Indicator */
.loading-indicator {
    text-align: center;
    padding: 40px 20px;
    display: none;
}

.pixel-loader {
    width: 40px;
    height: 40px;
    margin: 0 auto 20px auto;
    background: #0066CC;
    border: 1px solid #333333;
}

.loading-indicator p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #333333;
    margin: 0;
}

/* Profile Section Styling */
.profile-section {
    background: #F5F5F5;
    padding: 40px 20px;
    min-height: 600px;
}

.profile-header {
    background: #FFFFFF;
    border: 1px solid #CCCCCC;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.profile-avatar {
    display: inline-block;
    position: relative;
    margin-bottom: 20px;
}

.profile-avatar img {
    width: 80px;
    height: 80px;
    border: 2px solid #CCCCCC;
    background: #F0F0F0;
}

.avatar-edit-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: #0066CC;
    color: #FFFFFF;
    border: 1px solid #333333;
    font-size: 10px;
    cursor: pointer;
}

.profile-info h1 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 24px;
    color: #333333;
    margin: 0 0 10px 0;
}

.profile-info p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #666666;
    margin: 5px 0;
}

/* Statistics Section */
.stats-section {
    background: #FFFFFF;
    border: 1px solid #CCCCCC;
    padding: 30px;
    margin-bottom: 30px;
}

.stats-section h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    color: #333333;
    margin: 0 0 20px 0;
    border-bottom: 1px solid #EEEEEE;
    padding-bottom: 10px;
}

.stats-grid {
    display: table;
    width: 100%;
    border-collapse: collapse;
}

.stat-card {
    display: table-cell;
    width: 25%;
    padding: 15px;
    border: 1px solid #EEEEEE;
    text-align: center;
    vertical-align: top;
}

.stat-icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.stat-info h3 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #666666;
    margin: 0 0 5px 0;
    font-weight: normal;
}

.stat-number {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    color: #333333;
    font-weight: bold;
}

/* Favorites Section */
.favorites-section {
    background: #FFFFFF;
    border: 1px solid #CCCCCC;
    padding: 30px;
    margin-bottom: 30px;
}

.favorites-section h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    color: #333333;
    margin: 0 0 20px 0;
    border-bottom: 1px solid #EEEEEE;
    padding-bottom: 10px;
}

.favorites-grid {
    display: block;
}

.favorite-game {
    display: table;
    width: 100%;
    border: 1px solid #EEEEEE;
    margin-bottom: 10px;
    background: #FAFAFA;
}

.favorite-game img {
    display: table-cell;
    width: 60px;
    height: 60px;
    border: 1px solid #CCCCCC;
    vertical-align: middle;
    padding: 5px;
}

.game-details {
    display: table-cell;
    padding: 10px;
    vertical-align: middle;
}

.game-details h3 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #333333;
    margin: 0 0 5px 0;
}

.game-details p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    color: #666666;
    margin: 0 0 5px 0;
}

.remove-favorite {
    display: table-cell;
    width: 30px;
    text-align: center;
    vertical-align: middle;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #CC0000;
}

.remove-favorite:hover {
    background: #FFE6E6;
}

/* Activity Section */
.activity-section {
    background: #FFFFFF;
    border: 1px solid #CCCCCC;
    padding: 30px;
    margin-bottom: 30px;
}

.activity-section h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    color: #333333;
    margin: 0 0 20px 0;
    border-bottom: 1px solid #EEEEEE;
    padding-bottom: 10px;
}

.activity-list {
    display: block;
}

.activity-item {
    display: table;
    width: 100%;
    border-bottom: 1px solid #EEEEEE;
    padding: 10px 0;
}

.activity-icon {
    display: table-cell;
    width: 40px;
    font-size: 20px;
    text-align: center;
    vertical-align: top;
    padding-top: 5px;
}

.activity-details {
    display: table-cell;
    padding-left: 15px;
    vertical-align: top;
}

.activity-details p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #333333;
    margin: 0 0 5px 0;
}

.activity-time {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    color: #999999;
}

/* Settings Section */
.settings-section {
    background: #FFFFFF;
    border: 1px solid #CCCCCC;
    padding: 30px;
    margin-bottom: 30px;
}

.settings-section h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    color: #333333;
    margin: 0 0 20px 0;
    border-bottom: 1px solid #EEEEEE;
    padding-bottom: 10px;
}

.settings-grid {
    display: block;
}

.setting-item {
    display: table;
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #EEEEEE;
    background: #FAFAFA;
}

.setting-item h3 {
    display: table-cell;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #333333;
    margin: 0;
    vertical-align: middle;
    width: 70%;
}

/* Toggle Switch - Early 2000s Style */
.toggle-switch {
    display: table-cell;
    text-align: right;
    vertical-align: middle;
}

.toggle-switch input {
    display: none;
}

.slider {
    display: inline-block;
    width: 40px;
    height: 20px;
    background: #CCCCCC;
    border: 1px solid #999999;
    position: relative;
    cursor: pointer;
}

.slider:before {
    content: "";
    position: absolute;
    height: 16px;
    width: 16px;
    left: 2px;
    top: 1px;
    background: #FFFFFF;
    border: 1px solid #666666;
}

.toggle-switch input:checked + .slider {
    background: #0066CC;
}

.toggle-switch input:checked + .slider:before {
    left: 20px;
}

/* Theme Selector */
.theme-selector {
    display: table-cell;
    text-align: right;
    vertical-align: middle;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    padding: 4px;
    border: 1px solid #CCCCCC;
    background: #FFFFFF;
}

/* Settings Actions */
.settings-actions {
    margin-top: 30px;
    text-align: center;
    border-top: 1px solid #EEEEEE;
    padding-top: 20px;
}

.settings-actions .btn {
    margin: 0 5px;
}

/* Empty States */
.empty-favorites {
    text-align: center;
    padding: 40px 20px;
    color: #666666;
}

.empty-favorites p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Responsive Design - Early 2000s Compatible */
@media screen and (max-width: 600px) {
    .auth-container {
        margin: 0 10px;
        padding: 20px;
    }
    
    .stats-grid {
        display: block;
    }
    
    .stat-card {
        display: block;
        width: 100%;
        margin-bottom: 10px;
        border-bottom: 1px solid #EEEEEE;
    }
    
    .setting-item h3,
    .toggle-switch,
    .theme-selector {
        display: block;
        width: 100%;
        text-align: left;
        margin-bottom: 10px;
    }
}
/* S
ection Headers with Controls */
.section-header {
    display: table;
    width: 100%;
    margin-bottom: 20px;
    border-bottom: 1px solid #EEEEEE;
    padding-bottom: 10px;
}

.section-header h2 {
    display: table-cell;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    color: #333333;
    margin: 0;
    vertical-align: middle;
}

.favorites-controls {
    display: table-cell;
    text-align: right;
    vertical-align: middle;
}

.favorites-controls .btn {
    margin-left: 5px;
}

/* Favorites Reordering */
.favorites-reorder-help {
    background: #F0F8FF;
    border: 1px solid #0066CC;
    padding: 10px;
    margin-top: 10px;
    text-align: center;
}

.favorites-reorder-help p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    color: #0066CC;
    margin: 0;
}

.favorite-game.reorder-mode {
    background: #FFFACD;
    border: 1px solid #DAA520;
}

.reorder-controls {
    display: table-cell;
    width: 60px;
    text-align: center;
    vertical-align: middle;
}

.reorder-btn {
    background: #E0E0E0;
    border: 1px outset #CCCCCC;
    width: 20px;
    height: 20px;
    font-size: 10px;
    cursor: pointer;
    margin: 2px;
    color: #333333;
}

.reorder-btn:hover {
    background: #F0F0F0;
}

.reorder-btn:active {
    border: 1px inset #CCCCCC;
}

.reorder-btn:disabled {
    background: #F5F5F5;
    color: #CCCCCC;
    cursor: not-allowed;
}

/* Achievement Badges Section */
.achievements-section {
    background: #FFFFFF;
    border: 1px solid #CCCCCC;
    padding: 30px;
    margin-bottom: 30px;
}

.achievements-section h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    color: #333333;
    margin: 0 0 20px 0;
    border-bottom: 1px solid #EEEEEE;
    padding-bottom: 10px;
}

.achievements-grid {
    display: table;
    width: 100%;
    border-collapse: collapse;
}

.achievement-badge {
    display: table-cell;
    width: 20%;
    padding: 15px;
    border: 1px solid #EEEEEE;
    text-align: center;
    vertical-align: top;
    background: #FAFAFA;
}

.achievement-badge.earned {
    background: #F0F8FF;
    border-color: #0066CC;
}

.achievement-badge.locked {
    background: #F5F5F5;
    color: #CCCCCC;
}

.achievement-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 10px auto;
    background: #CCCCCC;
    border: 2px solid #999999;
    display: block;
    font-size: 20px;
    line-height: 36px;
    text-align: center;
    position: relative;
}

.achievement-badge.earned .achievement-icon {
    background: #FFD700;
    border-color: #DAA520;
    color: #333333;
}

.achievement-badge.locked .achievement-icon {
    background: #E0E0E0;
    border-color: #CCCCCC;
    color: #999999;
}

/* Achievement icon glow effect for earned badges */
.achievement-badge.earned .achievement-icon:after {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: #FFD700;
    border: 1px solid #DAA520;
    z-index: -1;
}

.achievement-title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: bold;
    color: #333333;
    margin: 0 0 5px 0;
}

.achievement-description {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    color: #666666;
    margin: 0;
}

.achievement-badge.locked .achievement-title,
.achievement-badge.locked .achievement-description {
    color: #CCCCCC;
}

/* Gaming History Section */
.history-section {
    background: #FFFFFF;
    border: 1px solid #CCCCCC;
    padding: 30px;
    margin-bottom: 30px;
}

.history-section h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    color: #333333;
    margin: 0 0 20px 0;
    border-bottom: 1px solid #EEEEEE;
    padding-bottom: 10px;
}

.history-controls {
    display: table;
    width: 100%;
    margin-bottom: 20px;
}

.history-filter {
    display: table-cell;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    padding: 4px;
    border: 1px solid #CCCCCC;
    background: #FFFFFF;
    vertical-align: middle;
}

.history-controls .btn {
    display: table-cell;
    text-align: right;
    vertical-align: middle;
    margin-left: 10px;
}

.history-table-container {
    border: 1px solid #CCCCCC;
    background: #FFFFFF;
    overflow-x: auto;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
}

.history-table th {
    background: #E0E0E0;
    border: 1px solid #CCCCCC;
    padding: 8px;
    text-align: left;
    font-weight: bold;
    color: #333333;
}

.history-table td {
    border: 1px solid #EEEEEE;
    padding: 6px 8px;
    color: #333333;
}

.history-table tr:nth-child(even) {
    background: #F9F9F9;
}

.history-table tr:hover {
    background: #F0F8FF;
}

.history-pagination {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #EEEEEE;
}

.history-pagination .btn {
    margin: 0 5px;
}

#page-info {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    color: #666666;
    margin: 0 10px;
}

/* Profile Customization Section */
.customization-section {
    background: #FFFFFF;
    border: 1px solid #CCCCCC;
    padding: 30px;
    margin-bottom: 30px;
}

.customization-section h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    color: #333333;
    margin: 0 0 20px 0;
    border-bottom: 1px solid #EEEEEE;
    padding-bottom: 10px;
}

.customization-form {
    display: block;
}

.customization-form .form-group {
    margin-bottom: 15px;
}

.customization-form label {
    display: block;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: #333333;
    margin-bottom: 5px;
}

.customization-form input,
.customization-form textarea,
.customization-form select {
    width: 100%;
    padding: 6px;
    border: 1px solid #CCCCCC;
    background: #FFFFFF;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    color: #333333;
}

.customization-form input:focus,
.customization-form textarea:focus,
.customization-form select:focus {
    border-color: #0066CC;
    background: #F0F8FF;
    outline: none;
}

.customization-form textarea {
    resize: vertical;
    min-height: 60px;
}

/* Empty States */
.empty-achievements {
    text-align: center;
    padding: 40px 20px;
    color: #666666;
}

.empty-achievements p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    margin-bottom: 20px;
}

.empty-history {
    text-align: center;
    padding: 40px 20px;
    color: #666666;
}

.empty-history p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Mobile Responsive Adjustments */
@media screen and (max-width: 600px) {
    .section-header h2,
    .favorites-controls {
        display: block;
        width: 100%;
        text-align: left;
        margin-bottom: 10px;
    }
    
    .achievements-grid {
        display: block;
    }
    
    .achievement-badge {
        display: block;
        width: 100%;
        margin-bottom: 10px;
        border-bottom: 1px solid #EEEEEE;
    }
    
    .history-controls .btn,
    .history-filter {
        display: block;
        width: 100%;
        margin-bottom: 10px;
        text-align: left;
    }
    
    .history-table {
        font-size: 10px;
    }
    
    .history-table th,
    .history-table td {
        padding: 4px;
    }
}