/* assets/css/frontend.css */

.mcp-dashboard-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.mcp-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e5e5;
}

.mcp-dashboard-header h1 {
    margin: 0;
    font-size: 32px;
    color: #333;
}

.mcp-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mcp-logout-btn {
    padding: 8px 16px;
    background: #dc3545;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.3s;
}

.mcp-logout-btn:hover {
    background: #c82333;
}

/* Orders Grid */
.mcp-orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.mcp-order-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.mcp-order-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.mcp-order-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mcp-order-header h3 {
    margin: 0;
    font-size: 20px;
}

.mcp-order-step {
    background: rgba(255,255,255,0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.mcp-order-body {
    padding: 20px;
}

.mcp-order-body p {
    margin: 0 0 15px 0;
    color: #666;
    line-height: 1.6;
}

.mcp-payment-status {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.mcp-payment-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mcp-payment-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
}

.mcp-payment-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.mcp-payment-badge.mcp-status-paid {
    background: #d4edda;
    color: #155724;
}

.mcp-payment-badge.mcp-status-pending {
    background: #fff3cd;
    color: #856404;
}

.mcp-order-footer {
    padding: 20px;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mcp-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.mcp-btn-primary {
    background: #667eea;
    color: white;
}

.mcp-btn-primary:hover {
    background: #5568d3;
}

.mcp-btn-small {
    padding: 6px 12px;
    font-size: 13px;
}

/* Order Details */
.mcp-back-link {
    margin-bottom: 20px;
}

.mcp-back-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.mcp-order-info-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.mcp-order-info-box h2 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 28px;
}

.mcp-order-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.mcp-meta-item strong {
    display: block;
    margin-bottom: 8px;
    color: #667eea;
    font-size: 14px;
    text-transform: uppercase;
}

.mcp-meta-item p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* Steps Timeline */
.mcp-steps-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.mcp-steps-section h3 {
    margin: 0 0 30px 0;
    font-size: 24px;
    color: #333;
}

.mcp-steps-timeline {
    position: relative;
    padding-left: 50px;
}

.mcp-steps-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: #e5e5e5;
}

.mcp-step-item {
    position: relative;
    margin-bottom: 40px;
    padding-bottom: 20px;
}

.mcp-step-number {
    position: absolute;
    left: -38px;
    width: 40px;
    height: 40px;
    background: #e5e5e5;
    color: #999;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    z-index: 1;
}

.mcp-step-item.active .mcp-step-number {
    background: #667eea;
    color: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

.mcp-step-item.completed .mcp-step-number {
    background: #28a745;
    color: white;
}

.mcp-step-content h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #333;
}

.mcp-step-content p {
    margin: 0 0 12px 0;
    color: #666;
    line-height: 1.6;
}

.mcp-step-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

.mcp-step-status.mcp-completed {
    background: #d4edda;
    color: #155724;
}

.mcp-step-status.mcp-in-progress {
    background: #cce5ff;
    color: #004085;
}

.mcp-step-status.mcp-pending {
    background: #f8f9fa;
    color: #6c757d;
}

/* File Upload */
.mcp-file-upload-area {
    margin-top: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 2px dashed #ddd;
}

#mcp-file-upload-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

#mcp-file-input {
    flex: 1;
}

#mcp-upload-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
}

#mcp-upload-message.success {
    background: #d4edda;
    color: #155724;
}

#mcp-upload-message.error {
    background: #f8d7da;
    color: #721c24;
}

/* Payment Section */
.mcp-payment-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.mcp-payment-section h3 {
    margin: 0 0 20px 0;
    font-size: 24px;
    color: #333;
}

.mcp-payment-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.mcp-payment-box {
    padding: 25px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    text-align: center;
}

.mcp-payment-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.mcp-payment-status-large {
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
}

.mcp-payment-status-large.mcp-status-paid {
    background: #28a745;
    color: white;
}

.mcp-payment-status-large.mcp-status-pending {
    background: #ffc107;
    color: #333;
}

/* Files Section */
.mcp-files-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.mcp-files-section h3 {
    margin: 0 0 20px 0;
    font-size: 24px;
    color: #333;
}

.mcp-files-list {
    display: grid;
    gap: 12px;
}

.mcp-file-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
    transition: all 0.3s;
}

.mcp-file-item:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mcp-file-image-preview {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid #ddd;
    background: #fff;
}

.mcp-file-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s;
}

.mcp-file-thumbnail:hover {
    transform: scale(1.05);
}

.mcp-file-icon {
    font-size: 32px;
    flex-shrink: 0;
    width: 60px;
    text-align: center;
}

.mcp-file-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mcp-file-name {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.mcp-file-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.mcp-file-download,
.mcp-file-view {
    padding: 6px 12px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.3s;
}

.mcp-file-download:hover,
.mcp-file-view:hover {
    background: #5568d3;
    color: white;
}

.mcp-file-view {
    background: #28a745;
}

.mcp-file-view:hover {
    background: #218838;
}

/* Media Gallery */
.mcp-media-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.mcp-media-section h3 {
    margin: 0 0 20px 0;
    font-size: 24px;
    color: #333;
}

.mcp-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.mcp-media-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: white;
    transition: transform 0.3s, box-shadow 0.3s;
}

.mcp-media-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.mcp-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
    background: #f0f0f0;
}

.mcp-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mcp-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.mcp-media-item:hover .mcp-image-overlay {
    opacity: 1;
}

.mcp-image-view-full {
    padding: 10px 20px;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s;
}

.mcp-image-view-full:hover {
    background: #667eea;
    color: white;
}

.mcp-media-item img {
    width: 100%;
    height: auto;
    display: block;
}

.mcp-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.mcp-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.mcp-media-title {
    padding: 12px;
    background: #f8f9fa;
    margin: 0;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.mcp-media-description {
    padding: 0 12px 12px 12px;
    margin: 0;
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}

/* No Orders State */
.mcp-no-orders {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mcp-no-orders p {
    font-size: 18px;
    color: #666;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .mcp-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .mcp-orders-grid {
        grid-template-columns: 1fr;
    }
    
    .mcp-payment-status {
        flex-direction: column;
    }
    
    .mcp-order-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}