/* pokemon-wheel.css - Base Styles for Pokémon Wheel Generator */

.pokemon-wheel-container {
    font-family: var(--global-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif);
    line-height: var(--global-line-height, 1.5);
    color: #333;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.pokemon-wheel-container * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.pokemon-wheel-container .section-title {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    margin-bottom: clamp(15px, 3vw, 25px);
    color: #2d3436;
    border-bottom: 3px solid #6c5ce7;
    padding-bottom: clamp(8px, 1.5vw, 15px);
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.5vw, 15px);
    font-family: var(--heading-font-family, var(--global-font-family));
    font-weight: var(--heading-font-weight, 700);
    line-height: var(--heading-line-height, 1.2);
}

.pokemon-wheel-container .section-title i {
    color: #6c5ce7;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
}

.pokemon-wheel-container .wheel-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(145deg, #f0f0f0, #fafafa);
    border-radius: 15px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
    margin: 0 auto;
    width: 100%;
    aspect-ratio: 1/1;
    max-width: min(500px, 95vw);
    max-height: min(500px, 95vw);
}

.pokemon-wheel-container .wheel {
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.16, 0.99);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
    border: clamp(6px, 1.5vw, 12px) solid white;
    width: 92%;
    height: 92%;
}

.pokemon-wheel-container .wheel-item {
    position: absolute;
    width: 50%;
    height: 50%;
    transform-origin: bottom right;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-top-left-radius: 100%;
}

.pokemon-wheel-container .wheel-item-content {
    position: absolute;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    padding: clamp(6px, 1.5vw, 10px);
    left: -50%;
    top: 30%;
    width: 140%;
    transform: rotate(45deg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pokemon-wheel-container .pokemon-name {
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    color: #2d3436;
    margin-bottom: 4px;
    word-break: break-word;
    font-size: clamp(0.75rem, 1.8vw, 1rem);
}

.pokemon-wheel-container .pokemon-type {
    padding: clamp(3px, 0.8vw, 6px) clamp(8px, 1.5vw, 15px);
    border-radius: 20px;
    display: inline-block;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    color: white;
    font-size: clamp(0.65rem, 1.5vw, 0.85rem);
}

.pokemon-wheel-container .spin-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: linear-gradient(145deg, #6c5ce7, #a29bfe);
    color: white;
    border: none;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 25px rgba(108, 92, 231, 0.5);
    transition: all 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(60px, 15vw, 90px);
    height: clamp(60px, 15vw, 90px);
    font-size: clamp(0.8rem, 2vw, 1.1rem);
}

.pokemon-wheel-container .spin-button:hover:not(:disabled) {
    background: linear-gradient(145deg, #5b4fcf, #9188fd);
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 0 35px rgba(108, 92, 231, 0.7);
}

.pokemon-wheel-container .spin-button:active:not(:disabled) {
    transform: translate(-50%, -50%) scale(0.95);
}

.pokemon-wheel-container .spin-button:disabled {
    background: #cccccc;
    cursor: not-allowed;
    box-shadow: none;
}

.pokemon-wheel-container .pointer {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(30px, 5vw, 40px);
    height: clamp(40px, 6vw, 50px);
    z-index: 5;
}

.pokemon-wheel-container .pointer::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: clamp(10px, 2vw, 15px) solid transparent;
    border-right: clamp(10px, 2vw, 15px) solid transparent;
    border-top: clamp(15px, 3vw, 25px) solid #FF6B6B;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.2));
}

.pokemon-wheel-container .wheel-section,
.pokemon-wheel-container .controls-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
    padding: clamp(15px, 3vw, 25px);
}

.pokemon-wheel-container .result-section {
    background: white;
    border-radius: 15px;
    padding: clamp(15px, 3vw, 25px);
    margin-top: clamp(15px, 3vw, 25px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}

.pokemon-wheel-container .result-content {
    display: flex;
    flex-direction: column;
    gap: clamp(15px, 3vw, 25px);
}

.pokemon-wheel-container .selected-pokemon {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: clamp(15px, 3vw, 25px);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: clamp(15px, 3vw, 25px);
    align-items: center;
    flex-direction: column;
}

@media (min-width: 768px) {
    .pokemon-wheel-container .selected-pokemon {
        flex-direction: row;
        text-align: left;
    }
}

.pokemon-wheel-container .pokemon-image-container {
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: clamp(3px, 0.8vw, 6px) solid #6c5ce7;
    flex-shrink: 0;
    width: clamp(100px, 25vw, 150px);
    height: clamp(100px, 25vw, 150px);
    min-width: clamp(100px, 25vw, 150px);
    min-height: clamp(100px, 25vw, 150px);
}

.pokemon-wheel-container .pokemon-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.pokemon-wheel-container .pokemon-info {
    flex: 1;
    width: 100%;
}

.pokemon-wheel-container .pokemon-info h3 {
    color: #2d3436;
    margin-bottom: clamp(6px, 1.5vw, 10px);
    font-family: var(--heading-font-family, var(--global-font-family));
    font-weight: var(--heading-font-weight, 700);
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}

.pokemon-wheel-container .pokemon-id {
    color: #6c5ce7;
    font-weight: bold;
    margin-bottom: clamp(8px, 1.8vw, 15px);
    font-size: clamp(0.85rem, 1.8vw, 1rem);
}

.pokemon-wheel-container .type-badges {
    display: flex;
    gap: clamp(6px, 1.2vw, 10px);
    margin-bottom: clamp(12px, 2.5vw, 20px);
    flex-wrap: wrap;
    justify-content: center;
}

@media (min-width: 768px) {
    .pokemon-wheel-container .type-badges {
        justify-content: flex-start;
    }
}

.pokemon-wheel-container .type-badge {
    display: inline-block;
    padding: clamp(5px, 1vw, 8px) clamp(10px, 2vw, 18px);
    border-radius: 20px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    font-size: clamp(0.75rem, 1.5vw, 0.9rem);
}

.pokemon-wheel-container .pokemon-stats {
    display: grid;
    gap: clamp(6px, 1.2vw, 10px);
    grid-template-columns: 1fr;
}

@media (min-width: 480px) {
    .pokemon-wheel-container .pokemon-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .pokemon-wheel-container .pokemon-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .pokemon-wheel-container .pokemon-stats {
        grid-template-columns: repeat(6, 1fr);
    }
}

.pokemon-wheel-container .stat {
    display: flex;
    justify-content: space-between;
    padding: clamp(6px, 1.2vw, 10px);
    background: rgba(108, 92, 231, 0.1);
    border-radius: 8px;
    font-size: clamp(0.8rem, 1.5vw, 0.95rem);
}

.pokemon-wheel-container .stat-name {
    font-weight: 600;
    color: #6c5ce7;
}

.pokemon-wheel-container .stat-value {
    font-weight: bold;
    color: #2d3436;
}

.pokemon-wheel-container .history {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: clamp(12px, 2.5vw, 20px);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.pokemon-wheel-container .history-title {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    margin-bottom: clamp(10px, 2vw, 15px);
    color: #2d3436;
    display: flex;
    align-items: center;
    gap: clamp(6px, 1.2vw, 10px);
    font-family: var(--heading-font-family, var(--global-font-family));
    font-weight: var(--heading-font-weight, 700);
}

.pokemon-wheel-container .history-list {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 5px;
}

.pokemon-wheel-container .history-item {
    padding: clamp(8px, 1.5vw, 12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    border-radius: 8px;
    font-size: clamp(0.8rem, 1.5vw, 0.95rem);
}

.pokemon-wheel-container .history-item:hover {
    background: rgba(108, 92, 231, 0.1);
}

.pokemon-wheel-container .history-pokemon {
    display: flex;
    align-items: center;
    gap: clamp(6px, 1.2vw, 10px);
}

.pokemon-wheel-container .history-pokemon img {
    width: clamp(30px, 6vw, 40px);
    height: clamp(30px, 6vw, 40px);
    border-radius: 50%;
    object-fit: cover;
}

.pokemon-wheel-container .history-time {
    color: #666;
    font-size: clamp(0.7rem, 1.2vw, 0.85rem);
}

.pokemon-wheel-container .control-group {
    margin-bottom: clamp(15px, 3vw, 25px);
    padding-bottom: clamp(12px, 2.5vw, 20px);
    border-bottom: 1px solid #eee;
}

.pokemon-wheel-container .control-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.pokemon-wheel-container .control-title {
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    margin-bottom: clamp(10px, 2vw, 15px);
    color: #2d3436;
    display: flex;
    align-items: center;
    gap: clamp(6px, 1.2vw, 10px);
    font-family: var(--heading-font-family, var(--global-font-family));
    font-weight: var(--heading-font-weight, 600);
}

.pokemon-wheel-container .control-title i {
    color: #6c5ce7;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
}

.pokemon-wheel-container .filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(6px, 1.2vw, 10px);
}

.pokemon-wheel-container .type-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(6px, 1.2vw, 10px) clamp(10px, 2vw, 16px);
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    opacity: 0.7;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    font-size: clamp(0.75rem, 1.5vw, 0.9rem);
    text-align: center;
    min-height: 40px;
    user-select: none;
}

.pokemon-wheel-container .type-filter.active {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
}

.pokemon-wheel-container .gen-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(6px, 1.2vw, 10px);
}

.pokemon-wheel-container .gen-button {
    padding: clamp(6px, 1.2vw, 10px) clamp(10px, 2vw, 16px);
    background: #f1f3f9;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
    font-size: clamp(0.75rem, 1.5vw, 0.9rem);
    text-align: center;
    min-height: 40px;
    user-select: none;
}

.pokemon-wheel-container .gen-button.active {
    background: linear-gradient(145deg, #6c5ce7, #a29bfe);
    color: white;
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}

.pokemon-wheel-container .slider-container {
    margin-top: clamp(10px, 2vw, 15px);
    padding: 0 5px;
}

.pokemon-wheel-container .slider {
    width: 100%;
    height: 10px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, #4ECDC4, #FF6B6B);
    border-radius: 8px;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.pokemon-wheel-container .slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: clamp(20px, 4vw, 28px);
    height: clamp(20px, 4vw, 28px);
    border-radius: 50%;
    background: #6c5ce7;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(108, 92, 231, 0.5);
    border: 3px solid white;
}

.pokemon-wheel-container .slider-label {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-weight: 600;
    color: #555;
    font-size: clamp(0.8rem, 1.5vw, 0.95rem);
}

.pokemon-wheel-container .checkbox-group {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.5vw, 12px);
    margin-bottom: clamp(8px, 1.5vw, 12px);
    padding: clamp(8px, 1.5vw, 12px);
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.2s;
    cursor: pointer;
}

.pokemon-wheel-container .checkbox-group:hover {
    background: #f1f3f9;
}

.pokemon-wheel-container .checkbox-group input {
    width: clamp(18px, 3vw, 22px);
    height: clamp(18px, 3vw, 22px);
    accent-color: #6c5ce7;
    cursor: pointer;
}

.pokemon-wheel-container .checkbox-group label {
    font-weight: 600;
    color: #2d3436;
    cursor: pointer;
    font-size: clamp(0.8rem, 1.5vw, 0.95rem);
    flex: 1;
}

.pokemon-wheel-container .action-buttons {
    display: flex;
    gap: clamp(10px, 2vw, 15px);
    margin-top: clamp(15px, 3vw, 25px);
    flex-direction: column;
}

@media (min-width: 480px) {
    .pokemon-wheel-container .action-buttons {
        flex-direction: row;
    }
}

.pokemon-wheel-container .action-button {
    flex: 1;
    padding: clamp(12px, 2.5vw, 16px);
    border-radius: 12px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 1.5vw, 12px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-height: 50px;
}

.pokemon-wheel-container .action-button.primary {
    background: linear-gradient(145deg, #6c5ce7, #a29bfe);
    color: white;
}

.pokemon-wheel-container .action-button.secondary {
    background: #f8f9fa;
    color: #2d3436;
    border: 2px solid #e0e0e0;
}

.pokemon-wheel-container .action-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.pokemon-wheel-container .action-button:active {
    transform: translateY(-1px);
}

.pokemon-wheel-container .action-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.pokemon-wheel-container .loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: #6c5ce7;
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 600;
    text-align: center;
    width: 100%;
    height: 100%;
}

.pokemon-wheel-container .loading-spinner {
    width: clamp(40px, 8vw, 60px);
    height: clamp(40px, 8vw, 60px);
    border: 4px solid #f3f3f3;
    border-top: 4px solid #6c5ce7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: clamp(10px, 2vw, 15px);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pokemon-wheel-container .wheel-colors {
    display: flex;
    justify-content: center;
    gap: clamp(8px, 1.5vw, 12px);
    margin-top: clamp(15px, 3vw, 20px);
    flex-wrap: wrap;
}

.pokemon-wheel-container .color-option {
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
    border: 2px solid transparent;
    width: clamp(25px, 5vw, 35px);
    height: clamp(25px, 5vw, 35px);
    flex-shrink: 0;
}

.pokemon-wheel-container .color-option.active {
    transform: scale(1.1);
    border: 2px solid white;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
}

.pokemon-wheel-container .main-content {
    display: flex;
    flex-direction: column;
    gap: clamp(15px, 3vw, 25px);
    width: 100%;
}

@media (min-width: 992px) {
    .pokemon-wheel-container .main-content {
        flex-direction: row;
    }
    
    .pokemon-wheel-container .wheel-section {
        flex: 2;
    }
    
    .pokemon-wheel-container .controls-section {
        flex: 1;
        min-width: 300px;
    }
}

.pokemon-wheel-container .no-pokemon-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #666;
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    font-weight: 600;
    text-align: center;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
}

.pokemon-wheel-container .no-pokemon-message i {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #6c5ce7;
    margin-bottom: 15px;
}

/* Error message styling */
.pokemon-wheel-container .error-message {
    background: #ffebee;
    border: 2px solid #ff6b6b;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    color: #d32f2f;
    font-weight: 600;
}

/* Responsive font sizes for wheel text */
@media (max-width: 480px) {
    .pokemon-wheel-container .wheel-item-content {
        transform: rotate(45deg) scale(0.8);
    }
    
    .pokemon-wheel-container .pokemon-name {
        font-size: 0.7rem;
    }
    
    .pokemon-wheel-container .pokemon-type {
        font-size: 0.6rem;
        padding: 2px 8px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .pokemon-wheel-container .type-filter,
    .pokemon-wheel-container .gen-button,
    .pokemon-wheel-container .action-button {
        min-height: 44px; /* Minimum touch target size */
    }
    
    .pokemon-wheel-container .spin-button {
        min-width: 70px;
        min-height: 70px;
    }
    
    .pokemon-wheel-container .checkbox-group {
        padding: 12px;
    }
}