/* ANDROID OPTIMIZED STYLES */

/* Android Screen Base */
.android-screen {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3a 100%);
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    overflow-x: hidden;
    position: relative;
}

/* Village Header */
.village-header {
    padding: 20px 16px 10px;
    background: linear-gradient(135deg, #2d1b69 0%, #11998e 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.village-name {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.village-info .player-info {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
    font-weight: 600;
}

.player-level {
    background: rgba(122, 166, 255, 0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 14px;
    border: 1px solid rgba(122, 166, 255, 0.3);
}

.player-name {
    color: #e2e8f0;
    font-size: 16px;
}

/* Scrollable Resources */
.resources-container {
    display: flex;
    align-items: center;
    padding: 12px 8px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.resource-scroll-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.resource-scroll-btn:hover {
    transform: scale(1.05);
}

.resource-scroll-btn:active {
    transform: scale(0.95);
}

.resources-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 8px 12px;
    flex: 1;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.resources-scroll::-webkit-scrollbar {
    display: none;
}

.resource-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    min-width: 100px;
    padding: 12px 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    gap: 0px;
}

/* Hide resource icons completely - no symbols needed */
.resources-scroll .resource-item .resource-icon,
.resource-item .resource-icon,
.village-header .resources-scroll .resource-item .resource-icon,
.android-screen .resource-icon {
    display: none !important;
}

.resource-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.resource-label {
    font-size: 12px;
    color: #a0a0a0;
    margin-bottom: 2px;
}

.resource-value {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

/* Loading Screen */
.loading-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid #ffffff;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin: 20px auto;
    overflow: hidden;
}

.loading-progress {
    width: 70%;
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #ffa726);
    animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(300%); }
}

/* Status Bar */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    font-weight: 500;
}

.time-display, .battery-indicator {
    color: rgba(255, 255, 255, 0.9);
}

/* Menu Screen */
.menu-screen {
    position: relative;
}

.menu-content {
    padding: 40px 20px;
    max-width: 400px;
    margin: 0 auto;
}

.game-logo {
    text-align: center;
    margin-bottom: 60px;
}

.game-logo h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.game-logo p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 8px 0 0 0;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.menu-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    color: white;
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 64px;
}

.menu-btn:hover, .menu-btn:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.menu-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.menu-btn.secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
}

.menu-btn.tertiary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border: none;
}

.btn-icon {
    width: 24px;
    height: 24px;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-text {
    flex: 1;
}

.btn-title {
    display: block;
    font-weight: 600;
    font-size: 16px;
}

.btn-subtitle {
    display: block;
    font-size: 12px;
    opacity: 0.8;
    margin-top: 2px;
}

/* Character Creation */
.character-creation-screen {
    padding: 20px;
}

.screen-header {
    display: flex;
    align-items: center;
    padding: 16px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.back-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.screen-header h2 {
    flex: 1;
    text-align: center;
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.spacer {
    width: 36px;
}

.character-form {
    max-width: 400px;
    margin: 0 auto;
}

.form-section {
    margin-bottom: 40px;
}

.input-group {
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.input-group input {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-actions {
    text-align: center;
}

.action-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 16px;
    padding: 16px 32px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.action-btn.danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5722 100%);
}

/* Village Screen */
.village-screen {
    padding-bottom: 80px; /* Space for tabs */
}

.game-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.player-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.player-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.player-details {
    display: flex;
    flex-direction: column;
}

.player-name {
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.village-name {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.time-weather {
    text-align: right;
}

.game-time {
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 500;
}

.game-time.day {
    background: linear-gradient(135deg, #ffa726 0%, #ff7043 100%);
}

.game-time.night {
    background: linear-gradient(135deg, #5c6bc0 0%, #3f51b5 100%);
}

/* Resources Bar */
.resources-bar {
    display: flex;
    gap: 1px;
    background: rgba(0, 0, 0, 0.1);
}

.resource-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.resource-item.gold {
    border-left: 3px solid #ffa726;
}

.resource-item.ingot {
    border-left: 3px solid #ab47bc;
}

.resource-item.energy {
    border-left: 3px solid #42a5f5;
}

.resource-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 12px;
}

.resource-item.gold .resource-icon {
    background: linear-gradient(135deg, #ffa726 0%, #ff7043 100%);
}

.resource-item.ingot .resource-icon {
    background: linear-gradient(135deg, #ab47bc 0%, #8e24aa 100%);
}

.resource-item.energy .resource-icon {
    background: linear-gradient(135deg, #42a5f5 0%, #1976d2 100%);
}

.resource-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.resource-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.resource-value {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

/* Dragon Status Bar */
.dragon-status-bar {
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 16px;
}

.active-dragon {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dragon-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.dragon-info {
    display: flex;
    flex-direction: column;
}

.dragon-name {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.dragon-level {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.dragon-stats {
    flex: 1;
}

.stat-bar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    width: 20px;
}

.stat-progress {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b 0%, #ffa726 50%, #66bb6a 100%);
    transition: width 0.3s ease;
}

.stat-value {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.8);
    min-width: 30px;
    text-align: right;
}

/* Village Content */
.village-content {
    padding: 20px;
    min-height: 400px;
}

/* Building Grid */
.building-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.building-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.building-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.building-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.building-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: white;
}

.building-status {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.building-card p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    text-align: left;
}

/* Battle Selection */
.battle-selection, .exploration-screen {
    padding: 16px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.back-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.section-header h2 {
    margin: 0;
    color: white;
    font-size: 20px;
    font-weight: 600;
}

/* Battle Modes */
.battle-modes, .exploration-areas {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.battle-mode-card, .area-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    text-align: left;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

.battle-mode-card:hover, .area-card:hover,
.battle-mode-card:focus, .area-card:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
    outline: none;
}

.battle-mode-card.disabled, .area-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.battle-mode-card.disabled:hover, .area-card.disabled:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.05);
}

/* Battle Button Cards - TalkBack uyumlu */
.battle-btn-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    text-align: left;
    font-family: inherit;
    font-size: 14px;
    color: white;
    margin: 8px 0;
}

.battle-btn-card:hover,
.battle-btn-card:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
    outline: none;
}

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

.battle-btn-card.disabled:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.05);
}

.battle-btn-card h3 {
    margin: 0 0 8px 0;
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.battle-btn-card p {
    margin: 0 0 12px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    line-height: 1.4;
}

.battle-mode-card h3, .area-card h3 {
    margin: 0 0 8px 0;
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.battle-mode-card p, .area-card p {
    margin: 0 0 12px 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.reward-info, .rewards {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 8px;
}

.energy-cost {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

/* Battle System Enhancements */
.battle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.difficulty-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.difficulty-badge.easy {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    color: white;
}

.difficulty-badge.medium {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
}

.difficulty-badge.hard {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
}

.difficulty-badge.boss {
    background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
    color: white;
}

.difficulty-badge.tournament {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: white;
}

.battle-details {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.battle-details > div {
    flex: 1;
    min-width: 120px;
}

.unlock-req {
    background: linear-gradient(135deg, #666 0%, #444 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.player-level {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin: 8px 0;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 12px;
}

.quick-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.quick-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.quick-btn .btn-icon {
    font-size: 20px;
}

.quick-btn span {
    font-size: 12px;
    font-weight: 500;
}

/* Bottom Tabs - Real Tab Interface */
.bottom-tabs {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 15, 30, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    padding: 0;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(10px);
    height: 50px;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    height: 50px;
    margin: 0;
    font-weight: 500;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: none;
    letter-spacing: 0.5px;
    /* Remove button-like appearance */
    border-radius: 0;
    outline: none;
    /* Android touch feedback */
    -webkit-tap-highlight-color: rgba(99, 102, 241, 0.1);
    tap-highlight-color: rgba(99, 102, 241, 0.1);
}

.tab-btn:last-child {
    border-right: none;
}

.tab-btn.active {
    color: #ffffff;
    background: rgba(99, 102, 241, 0.15);
    font-weight: 600;
    border-bottom: 3px solid #667eea;
    box-shadow: inset 0 3px 6px rgba(102, 126, 234, 0.2);
}

.tab-btn.active::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 1px 6px rgba(102, 126, 234, 0.6);
}

.tab-btn.active::after {
    display: none;
}

.tab-btn:hover:not(.active) {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn:active {
    background: rgba(99, 102, 241, 0.1);
}

.tab-btn:focus {
    outline: 2px solid #7aa6ff;
    outline-offset: -2px;
    background: rgba(122, 166, 255, 0.08);
}

.tab-btn span {
    font-size: 12px;
    font-weight: inherit;
    line-height: 1.2;
    margin-top: 4px;
    text-align: center;
}

/* Android'e özel dokunmatik iyileştirmeler */
@media (hover: none) and (pointer: coarse) {
    .tab-btn {
        min-height: 68px;
        padding: 18px 8px 14px 8px;
    }
    
    .tab-btn:hover {
        transform: none;
        box-shadow: none;
        background: transparent;
    }
    
    .tab-btn:active {
        background: rgba(99, 102, 241, 0.15);
        transform: none;
    }
    
    .tab-btn span {
        font-size: 13px;
    }
}

/* Tab Content */
.chat-tab, .clan-tab, .settings-tab {
    padding: 20px 0;
}

.chat-messages {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    max-height: 200px;
    overflow-y: auto;
}

.message {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.message:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.message.system .message-text {
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.message-author {
    color: #667eea;
    font-weight: 600;
    margin-right: 8px;
}

.message-text {
    color: white;
}

.message-time {
    float: right;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
}

.chat-input {
    display: flex;
    gap: 12px;
}

.chat-input input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    color: white;
    font-family: inherit;
}

.chat-input button {
    background: #667eea;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

/* Clan Tab */
.clan-header {
    text-align: center;
    margin-bottom: 30px;
}

.clan-header h3 {
    margin: 0 0 8px 0;
    color: white;
}

.clan-header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

.clan-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}

.clan-actions .action-btn {
    flex: 1;
    padding: 12px;
    min-width: auto;
}

.clan-actions .action-btn.secondary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.clan-benefits {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 20px;
}

.clan-benefits h4 {
    margin: 0 0 16px 0;
    color: white;
}

.clan-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.clan-benefits li {
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    padding-left: 20px;
}

.clan-benefits li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
}

/* Settings Tab */
.settings-section {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.settings-section h3 {
    margin: 0 0 20px 0;
    color: white;
    font-size: 16px;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.setting-item:last-child {
    margin-bottom: 0;
}

.setting-item label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.setting-item input[type="range"] {
    flex: 1;
    margin: 0 12px;
    accent-color: #667eea;
}

.setting-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #667eea;
}

.setting-item span {
    min-width: 40px;
    text-align: right;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

/* Notifications */
.android-notification {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 8px;
    backdrop-filter: blur(20px);
    border-left: 4px solid #667eea;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.android-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.android-notification.success {
    border-left-color: #4caf50;
}

.android-notification.error {
    border-left-color: #f44336;
}

/* Tab Overlay */
.tab-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 50px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 999;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.tab-overlay > div {
    max-width: 600px;
    width: 100%;
    background: rgba(20, 20, 40, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    max-height: 80vh;
    overflow-y: auto;
}

/* BATTLE RESULTS AND REWARDS STYLES */
.battle-results {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3a 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 16px;
    border: 2px solid #7aa6ff;
}

.result-header {
    text-align: center;
    margin-bottom: 24px;
}

.result-header.victory {
    color: #00ff88;
}

.result-header.defeat {
    color: #ff6b6b;
}

.result-header h2 {
    font-size: 32px;
    margin: 0 0 8px 0;
    font-weight: 900;
}

.battle-rewards, .dragon-xp-gains {
    background: rgba(122, 166, 255, 0.1);
    border: 1px solid rgba(122, 166, 255, 0.3);
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.battle-rewards h3, .dragon-xp-gains h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    color: #7aa6ff;
}

.rewards-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}

.reward-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(122, 166, 255, 0.2);
}

.reward-label {
    font-size: 16px;
    font-weight: 600;
    color: #e2e8f0;
}

.reward-value {
    font-size: 16px;
    font-weight: 700;
    color: #00ff88;
}

.dragon-xp-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    margin: 6px 0;
}

.dragon-xp-item.alive {
    border-left: 4px solid #00ff88;
}

.dragon-xp-item.defeated {
    border-left: 4px solid #ff6b6b;
    opacity: 0.7;
}

.dragon-name {
    font-weight: 700;
    color: #ffffff;
}

.dragon-element {
    color: #7aa6ff;
    font-size: 14px;
}

.xp-gain {
    color: #00ff88;
    font-weight: 600;
    margin-left: auto;
}

.status-text {
    font-size: 12px;
    margin-left: 8px;
}

.result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

/* ACCESSIBILITY BUTTONS FOR TALKBACK USERS */
.accessibility-buttons {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(15, 15, 35, 0.95);
    border: 2px solid #7aa6ff;
    border-radius: 12px;
    padding: 16px;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.target-buttons-header h3,
.skill-buttons-header h3 {
    margin: 0 0 12px 0;
    color: #7aa6ff;
    font-size: 18px;
    text-align: center;
}

.target-buttons-grid,
.skill-buttons-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.target-btn,
.skill-select-btn {
    background: linear-gradient(135deg, #2d1b69 0%, #11998e 100%);
    border: 2px solid #7aa6ff;
    border-radius: 8px;
    color: #ffffff;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.target-btn:hover,
.skill-select-btn:hover {
    background: linear-gradient(135deg, #3d2b79 0%, #21a99e 100%);
    border-color: #90c2ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(122, 166, 255, 0.3);
}

.target-btn:active,
.skill-select-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(122, 166, 255, 0.2);
}

.target-btn:focus,
.skill-select-btn:focus {
    outline: 3px solid #7aa6ff;
    outline-offset: 2px;
}

/* Responsive */
@media (max-width: 480px) {
    .building-grid {
        grid-template-columns: 1fr;
    }
    
    .resources-bar {
        flex-direction: column;
        gap: 0;
    }
    
    .menu-content {
        padding: 20px;
    }
    
    .game-logo h1 {
        font-size: 2rem;
    }
    
    .accessibility-buttons {
        bottom: 10px;
        left: 10px;
        right: 10px;
        padding: 12px;
    }
    
    .target-buttons-grid,
    .skill-buttons-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .target-btn,
    .skill-select-btn {
        padding: 10px 12px;
        font-size: 14px;
        min-height: 44px;
    }
}