/* Стили для кнопок владельца на карточках кофеен */

/* Кнопка редактирования для владельца */
.coffee-shop-owner-edit {
    margin-top: 15px;
    padding: 10px;
    background: rgba(139, 69, 19, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(139, 69, 19, 0.2);
}

.coffee-shop-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #8B4513;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.coffee-shop-edit-btn:hover {
    background: #654321;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
    color: white;
    text-decoration: none;
}

.edit-icon {
    font-size: 16px;
}

/* Кнопка "Стать владельцем" */
.coffee-shop-become-owner {
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.coffee-shop-request-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #333;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.coffee-shop-request-btn:hover {
    background: linear-gradient(135deg, #e0a800, #e68900);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

.crown-icon {
    font-size: 16px;
}

/* Модальное окно для запроса владения */
.owner-request-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.owner-request-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.owner-request-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.owner-request-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.owner-request-close:hover {
    background: #f0f0f0;
    color: #000;
}

.owner-request-content h2 {
    color: #8B4513;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.owner-request-form .form-group {
    margin-bottom: 20px;
}

.owner-request-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.owner-request-form .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
    font-family: inherit;
}

.owner-request-form .form-control:focus {
    outline: none;
    border-color: #8B4513;
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.owner-request-form textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.owner-request-form input[type="file"].form-control {
    padding: 8px 12px;
    background-color: #f9f9f9;
    border: 2px dashed #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.owner-request-form input[type="file"].form-control:hover {
    border-color: #8B4513;
    background-color: #f5f5f5;
}

.owner-request-form input[type="file"].form-control:focus {
    border-color: #8B4513;
    background-color: #fff;
}

.owner-request-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
}

.owner-request-btn-primary {
    padding: 12px 24px;
    background: #8B4513;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.owner-request-btn-primary:hover {
    background: #654321;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

.owner-request-btn-secondary {
    padding: 12px 24px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.owner-request-btn-secondary:hover {
    background: #545b62;
    transform: translateY(-1px);
}

/* Уведомления */
.owner-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    z-index: 1100;
    animation: slideInRight 0.3s ease;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.owner-notification.success {
    background: #28a745;
}

.owner-notification.error {
    background: #dc3545;
}

.owner-notification.info {
    background: #17a2b8;
}

/* Иконка загрузки */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #8B4513;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(300px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Адаптивность */
@media (max-width: 768px) {
    .owner-request-content {
        width: 95%;
        margin: 20px;
        padding: 20px;
    }
    
    .owner-request-actions {
        flex-direction: column;
    }
    
    .owner-notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .coffee-shop-edit-btn,
    .coffee-shop-request-btn {
        font-size: 13px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .owner-request-content h2 {
        font-size: 1.3em;
    }
    
    .owner-request-btn-primary,
    .owner-request-btn-secondary {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Стили для интеграции с существующими карточками кофеен */
.coffee-shop-card .coffee-shop-owner-edit,
.coffee-shop-card .coffee-shop-become-owner {
    margin-top: 10px;
}

/* Особый стиль для инлайн редактирования (опциональное) */
.coffee-shop-inline-edit {
    position: relative;
}

.coffee-shop-inline-edit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(139, 69, 19, 0.1);
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.coffee-shop-card:hover .coffee-shop-inline-edit-overlay {
    display: flex;
}

.inline-edit-btn {
    background: rgba(139, 69, 19, 0.9);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.inline-edit-btn:hover {
    background: #8B4513;
} 