/* Homepage Styles */

/* Machines Section */
.machines-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.machines-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.machine-showcase-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.machine-showcase-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.machine-showcase-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.machine-showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.machine-showcase-card:hover .machine-showcase-image img {
    transform: scale(1.05);
}

.machine-showcase-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.machine-showcase-content {
    padding: 2rem;
}

.machine-showcase-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.machine-showcase-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.machine-showcase-specs {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-icon {
    font-weight: 600;
    color: #555;
}

.spec-value {
    font-weight: 500;
    color: #333;
}

.machine-showcase-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.machine-showcase-price .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #007bff;
}

/* Pasta Types Section */
.pasta-types-section {
    padding: 5rem 0;
    background: white;
}

.pasta-types-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pasta-type-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
}

.pasta-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

.pasta-type-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.pasta-type-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pasta-type-card:hover .pasta-type-image img {
    transform: scale(1.05);
}

.pasta-type-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pasta-type-badge.badge-premium {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}

.pasta-type-badge.badge-specialty {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.pasta-type-badge.badge-custom {
    background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%);
}

.pasta-type-content {
    padding: 1.5rem;
}

.pasta-type-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.75rem;
}

.pasta-type-description {
    color: #666;
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.pasta-type-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.detail-label {
    color: #666;
    font-weight: 500;
}

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

/* Registration Section */
.registration-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.registration-section .section-title {
    color: white;
}

.registration-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.registration-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.registration-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.registration-benefits {
    list-style: none;
    margin-bottom: 2rem;
}

.registration-benefits li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    padding-left: 2rem;
}

.registration-benefits li::before {
    content: 'check_circle';
    position: absolute;
    left: 0;
    color: #4caf50;
    font-family: 'Material Icons';
}

.registration-requirements {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.registration-requirements h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.registration-requirements ul {
    list-style: none;
}

.registration-requirements li {
    padding: 0.25rem 0;
    font-size: 0.875rem;
    opacity: 0.9;
}

.registration-action {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.registration-steps-preview {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.step-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    position: relative;
}

.step-preview:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -10px;
    width: 20px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
}

.step-preview.active .step-number {
    background: #4caf50;
    border-color: #4caf50;
}

.step-preview .step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.step-preview .step-text {
    font-size: 0.75rem;
    opacity: 0.8;
}

.registration-cta {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.registration-cta h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.registration-cta p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    background: white;
    color: #667eea;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.registration-timeline {
    margin-top: 1rem;
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Order Section */
.order-section {
    padding: 3rem 0;
    background: #f8f9fa;
}

.order-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.order-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.order-form .form-group {
    margin-bottom: 1rem;
}

.order-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.order-form input,
.order-form select,
.order-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.order-summary {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .machines-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .pasta-types-showcase {
        grid-template-columns: 1fr;
    }
    
    .registration-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .registration-steps-preview {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .step-preview:not(:last-child)::after {
        display: none;
    }
    
    .order-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions button {
        width: 100%;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    font-size: 1.5rem;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background: #f8f9fa;
}

.modal-body ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
    color: #666;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}
