/* Контейнер */
.pc-container {
    width: 100%;
    max-width: 100%;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 20px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Дробное отображение пропорции */
.pc-proportion-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.pc-fraction-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pc-fraction {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-width: 120px;
    transition: all 0.3s ease;
}

.pc-numerator,
.pc-denominator {
    width: 100%;
    text-align: center;
}

.pc-fraction-line {
    width: 100%;
    height: 2px;
    background: #333;
    margin: 8px 0;
    border-radius: 1px;
}

.pc-equals {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin: 0 10px;
}

/* Поля ввода */
.pc-input {
    width: 100%;
    padding: 12px 8px;
    border: 2px solid #ddd;
    border-radius: 6px;
    text-align: center;
    background: white;
    font-size: 18px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-weight: bold;
}

.pc-input:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.pc-input::placeholder {
    color: #999;
    font-weight: normal;
}

/* Информационный блок */
.pc-info-section {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    background: #e8f5e8;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
}

.pc-info-text {
    margin: 0;
    color: #2e7d32;
    font-size: 14px;
    font-style: italic;
}

/* Блок поделиться */
.pc-share-section {
    text-align: center;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.pc-share-title {
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
}

.pc-share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.pc-share-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.pc-share-btn:hover {
    transform: scale(1.1);
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.pc-share-vk { background: #4C75A3; }
.pc-share-tg { background: #0088cc; }
.pc-share-wa { background: #25D366; }
.pc-share-copy { background: #666; }

/* Уведомление */
.pc-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100001;
    background: #4CAF50;
    color: white;
    padding: 25px 35px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: pc-notification-fade 3s ease-in-out;
}

@keyframes pc-notification-fade {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    20% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    80% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
}

/* Состояния при вычислении */
.pc-calculating {
    background: #e8f5e8 !important;
    border-color: #4CAF50 !important;
}

.pc-result {
    animation: pc-result-pulse 0.6s ease-in-out;
}

@keyframes pc-result-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Адаптивность */

/* Tablet */
@media (max-width: 768px) {
    .pc-proportion-display {
        gap: 15px;
    }
    
    .pc-fraction {
        min-width: 100px;
        padding: 12px;
    }
    
    .pc-equals {
        font-size: 24px;
        margin: 0 5px;
    }
    
    .pc-input {
        padding: 10px 6px;
        font-size: 16px;
    }
    
    .pc-share-buttons {
        gap: 12px;
    }
    
    .pc-share-btn {
        width: 55px;
        height: 55px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .pc-container {
        padding: 15px;
    }
    
    .pc-proportion-display {
        flex-direction: column;
        gap: 10px;
    }
    
    .pc-equals {
        margin: 5px 0;
        transform: rotate(90deg);
    }
    
    .pc-fraction {
        min-width: 140px;
        flex-direction: row;
        gap: 10px;
        align-items: center;
    }
    
    .pc-fraction-line {
        width: 2px;
        height: 40px;
        margin: 0 8px;
    }
    
    .pc-input {
        font-size: 16px;
        padding: 8px;
    }
    
    .pc-info-text {
        font-size: 13px;
    }
}

/* Small Mobile */
@media (max-width: 360px) {
    .pc-container {
        padding: 12px;
    }
    
    .pc-fraction {
        min-width: 120px;
        padding: 10px;
    }
    
    .pc-input {
        padding: 6px;
        font-size: 14px;
    }
    
    .pc-share-btn {
        width: 50px;
        height: 50px;
        font-size: 14px;
    }
    
    .pc-notification {
        padding: 20px 25px;
        font-size: 16px;
    }
}