/* global css */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* body */
body{
    font-family: 'Segoe UI', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}
/* main container style */
.container{
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid: 30px;
    padding: 40px;
}

/* header style */
.header{
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 20px;
}

.header h1{
    color: #667eea;
    font: size 2.5em;
    margin-bottom: 10px;
}

.header p{
    color: #666;
    font-size: 1.1em;
}

/* form section */
.form-section{
    display: flex;
    flex-direction: column;
}

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

.form-group label{
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.1em;
}
.form-group input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.form-group input[type="text"]:focus{
    outline: none;
    border-color: #667eea;
}

/* size options section */
.size-options{
    display: flex;
    gap: 15px;
}

.size-option{
    flex: 1;
    position: relative;
}

.size-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.size-option label{
    display: block;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition:  all 0.3;
    background: white;
}

.size-option input[type="radio"]:checked + label {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

/* base selection */
.base-select{
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    background: white;
    transition: border-color 0.3s;
}

.base-select:focus{
    outline: none;
    border-color: #667eea;
}

/* ingredients section */
.ingredients-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.ingredient-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s;
    cursor: pointer;
}

.ingredient-item:hover {
    background: #f5f5f5;
}

.ingredient-item input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.ingredient-item input[type="checkbox"]:checked {
    accent-color: #667eea;
}

.ingredient-item label {
    cursor: pointer;
    flex: 1;
    margin: 0;
    font-weight: normal;
}

.ingredient-price {
    color: #667eea;
    font-weight: 600;
}

/* order button */
.order-button {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
}

.order-button:hover{
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.order-button:active{
    transform: translateY(0);
}

.order-display{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    padding: 30px;
    min-height: 400px;
    margin: 10px;
}

.placeholder{
    text-align: center;
    color: #666;
}

.placeholder-icon {
    font-size: 5em;
    margin-bottom: 20px;
}

.smoothie-result {
    width: 100%;
    text-align: center;
}

.smoothie-result h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 2em;
}

.smoothie-image {
    width: 200px;
    height: 200px;
    margin: 20px auto;
    background: linear-gradient(180deg, #ff6b6b 0%, #ff8e53 100%);
    border-radius: 50% 50% 45% 45%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: smoothiePulse 2s ease-in-out infinite;
}

@keyframes smoothiePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.smoothie-details {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    text-align: left;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.detail-row:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 1.2em;
    color: #667eea;
}

.detail-label {
    font-weight: 600;
    color: #333;
}

.detail-value {
    color: #666;
}

@media (max-width: 968px) {
    .container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .ingredients-grid {
        grid-template-columns: 1fr;
    }
    
    .size-options {
        flex-direction: column;
    }
}