/* 
 * Styles for the Wheel of Names plugin
 * 
 * @package Wheel of Names
 * @since 1.0.0
 */

/* General container styles */
.wheel-of-names-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Wheel title */
.wheel-title {
    text-align: center;
    margin-bottom: 25px;
    font-size: 28px;
    color: #333;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Responsive layout with flexbox */
.wheel-content {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.wheel-column {
    flex: 1;
    min-width: 300px;
}

/* Wheel container */
.wheel-canvas-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

/* Wheel canvas */
.wheel-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Pointer/indicator */
.wheel-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 30px solid #333;
    z-index: 10;
    filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.3));
}

/* Spin button */
.wheel-spin-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.spin-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.spin-button:hover {
    background-color: #45a049;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

.spin-button:active {
    transform: scale(0.95);
}

/* Entries area */
.wheel-entries {
    margin-bottom: 30px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wheel-entries h3 {
    margin-bottom: 15px;
    font-size: 20px;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.wheel-entries-container {
    margin-bottom: 15px;
}

.wheel-entries-input {
    width: 100%;
    min-height: 150px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.3s;
}

.wheel-entries-input:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

/* Wheel controls */
.wheel-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.wheel-button {
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wheel-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.wheel-button-shuffle {
    background-color: #9b59b6;
}

.wheel-button-shuffle:hover {
    background-color: #8e44ad;
}

.wheel-button-clear {
    background-color: #e74c3c;
}

.wheel-button-clear:hover {
    background-color: #c0392b;
}

/* Results area */
.wheel-results {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wheel-results h3 {
    margin-bottom: 15px;
    font-size: 20px;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.wheel-result-display {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 8px;
    border: 1px solid #ddd;
    min-height: 30px;
    transition: all 0.3s ease;
}

.wheel-result-display.winner {
    background-color: #e8f5e9;
    border-color: #4CAF50;
    color: #2e7d32;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

/* History of results */
.wheel-history {
    margin-top: 25px;
}

.wheel-history h4 {
    margin-bottom: 10px;
    font-size: 18px;
    color: #333;
}

.wheel-history-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f8f8f8;
}

.wheel-history-list li {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    transition: background-color 0.2s;
}

.wheel-history-list li:hover {
    background-color: #f0f0f0;
}

.wheel-history-list li:last-child {
    border-bottom: none;
}

/* Wheel sizes */
.tamanho-small .wheel-canvas-container {
    max-width: 300px;
}

.tamanho-medium .wheel-canvas-container {
    max-width: 400px;
}

.tamanho-large .wheel-canvas-container {
    max-width: 500px;
}

/* Responsiveness */
@media (max-width: 992px) {
    .wheel-content {
        flex-direction: column;
    }
    
    .wheel-column {
        width: 100%;
        min-width: 250px;
    }
    
    .wheel-canvas-container {
        max-width: 90%;
        margin: 0 auto 20px;
    }
    
    .spin-button {
        width: 70px;
        height: 70px;
        font-size: 15px;
    }
    
    .wheel-title {
        font-size: 22px;
    }
}

@media (max-width: 576px) {
    .wheel-of-names-container {
        padding: 10px;
    }
    
    .wheel-canvas-container {
        max-width: 100%;
    }
    
    .spin-button {
        width: 60px;
        height: 60px;
        font-size: 14px;
    }
    
    .wheel-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .wheel-entries-input {
        min-height: 120px;
    }
    
    .wheel-controls {
        flex-wrap: wrap;
    }
    
    .wheel-button {
        flex: 1 0 45%;
        margin-bottom: 5px;
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .wheel-result-display {
        font-size: 20px;
        padding: 10px;
    }
    
    .wheel-history-list {
        max-height: 150px;
    }
}

/* Adjustments for touch screens */
@media (hover: none) {
    .spin-button {
        /* Increase touch area for touch devices */
        min-width: 70px;
        min-height: 70px;
    }
    
    .wheel-button {
        /* Increase touch area for buttons */
        padding: 10px 15px;
        margin: 5px;
    }
    
    /* Additional spacing to facilitate touch */
    .wheel-controls {
        gap: 12px;
    }
    
    .wheel-history-list li {
        padding: 10px 12px;
    }
}
