/* Lotus Zen Certificates - Frontend Styles */

/* ==========================================================================
   Certificate Display Section - Order Details Page
   ========================================================================== */

.woocommerce-certificate-section {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.woocommerce-certificate-section h2 {
    margin-bottom: 25px;
    font-size: 24px;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.woocommerce-certificate-section h2::before {
    content: '🏆';
    font-size: 28px;
}

/* Certificate Ready State */
.lzc-certificate-ready {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.lzc-success-message {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-left: 4px solid #10b981;
    border-radius: 8px;
    margin-bottom: 20px;
}

.lzc-icon {
    font-size: 32px;
    color: #10b981;
    font-weight: bold;
}

.lzc-status-text {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #065f46;
}

.lzc-upload-date {
    color: #64748b;
    font-size: 14px;
    margin: 0 0 20px 0;
}

/* Certificate Preview */
.lzc-certificate-preview {
    margin: 30px 0;
    text-align: center;
}

.lzc-certificate-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 3px solid #667eea;
    transition: transform 0.3s ease;
}

.lzc-certificate-image:hover {
    transform: scale(1.02);
}

.lzc-pdf-preview {
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #cbd5e1;
}

.lzc-pdf-icon {
    font-size: 64px;
    display: block;
    margin-bottom: 15px;
}

/* Certificate Actions */
.lzc-certificate-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 30px 0;
}

.lzc-view-button,
.lzc-download-button {
    padding: 14px 32px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 30px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.lzc-view-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
}

.lzc-view-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4) !important;
}

.lzc-download-button {
    background: white !important;
    color: #667eea !important;
    border: 2px solid #667eea !important;
}

.lzc-download-button:hover {
    background: #667eea !important;
    color: white !important;
}

/* Share Section */
.lzc-share-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.lzc-share-text {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 15px;
}

.lzc-share-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.lzc-share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: white !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.lzc-facebook {
    background: #1877f2;
}

.lzc-facebook:hover {
    background: #145dbf;
    transform: translateY(-3px);
}

.lzc-twitter {
    background: #000000;
}

.lzc-twitter:hover {
    background: #333333;
    transform: translateY(-3px);
}

.lzc-email {
    background: #ea4335;
}

.lzc-email:hover {
    background: #c5362a;
    transform: translateY(-3px);
}

/* Certificate Pending State */
.lzc-certificate-pending {
    text-align: center;
    padding: 40px 20px;
}

.lzc-pending-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: lzc-pulse 2s ease-in-out infinite;
}

@keyframes lzc-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.lzc-pending-title {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 15px;
}

.lzc-pending-description {
    font-size: 16px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
}

.lzc-pending-timeline {
    font-size: 15px;
    color: #475569;
    background: #f1f5f9;
    padding: 15px 25px;
    border-radius: 8px;
    display: inline-block;
}

.lzc-notification-info {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #64748b;
    font-size: 14px;
}

.lzc-bell-icon {
    font-size: 20px;
}

/* ==========================================================================
   Thank You Page Styles
   ========================================================================== */

.lzc-thankyou-certificate-info {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
    border: 2px solid #f59e0b;
}

.lzc-thankyou-certificate-info h3 {
    font-size: 22px;
    color: #92400e;
    margin-bottom: 20px;
}

.lzc-next-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lzc-next-steps li {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.lzc-step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #f59e0b;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.lzc-step-content {
    flex: 1;
}

.lzc-step-content strong {
    display: block;
    font-size: 16px;
    color: #78350f;
    margin-bottom: 5px;
}

.lzc-step-content p {
    margin: 0;
    color: #92400e;
    font-size: 14px;
    line-height: 1.5;
}

.lzc-thankyou-note {
    margin-top: 30px;
    text-align: center;
    font-size: 16px;
    color: #78350f;
    font-style: italic;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
}

/* ==========================================================================
   My Account - Certificates Page
   ========================================================================== */

.lzc-my-certificates {
    padding: 20px 0;
}

.lzc-certificates-intro {
    margin-bottom: 30px;
}

.lzc-certificates-intro h3 {
    font-size: 22px;
    color: #1e293b;
    margin-bottom: 10px;
}

.lzc-certificates-intro p {
    color: #64748b;
    font-size: 15px;
}

/* Certificates Grid */
.lzc-certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.lzc-certificate-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lzc-certificate-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.lzc-certificate-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f1f5f9;
}

.lzc-certificate-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.lzc-certificate-card:hover .lzc-certificate-thumbnail img {
    transform: scale(1.05);
}

.lzc-pdf-thumb {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}

.lzc-pdf-thumb .lzc-pdf-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.lzc-pdf-thumb p {
    margin: 0;
    color: #4338ca;
    font-weight: 600;
}

.lzc-certificate-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 ease;
}

.lzc-certificate-card:hover .lzc-certificate-overlay {
    opacity: 1;
}

.lzc-view-link {
    color: white !important;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none !important;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* Certificate Info */
.lzc-certificate-info {
    padding: 20px;
}

.lzc-certificate-info h4 {
    font-size: 16px;
    color: #1e293b;
    margin: 0 0 15px 0;
}

.lzc-certificate-meta {
    margin-bottom: 15px;
}

.lzc-meta-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.lzc-meta-label {
    color: #64748b;
}

.lzc-meta-value {
    color: #1e293b;
    font-weight: 600;
}

.lzc-certificate-actions {
    display: flex;
    gap: 10px;
}

.lzc-download-btn,
.lzc-order-btn {
    flex: 1;
    padding: 10px 15px !important;
    font-size: 14px !important;
    text-align: center !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
}

.lzc-download-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
}

.lzc-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
}

.lzc-order-btn {
    background: white !important;
    color: #667eea !important;
    border: 1px solid #667eea !important;
}

.lzc-order-btn:hover {
    background: #f8f9fa !important;
}

/* Pending Section */
.lzc-pending-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #e2e8f0;
}

.lzc-pending-section h3 {
    font-size: 20px;
    color: #1e293b;
    margin-bottom: 10px;
}

.lzc-pending-section > p {
    color: #64748b;
    margin-bottom: 20px;
}

.lzc-pending-table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.lzc-pending-table thead {
    background: #f8f9fa;
}

.lzc-pending-table th {
    padding: 12px 15px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
}

.lzc-pending-table td {
    padding: 15px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    color: #1e293b;
}

.lzc-pending-table tbody tr:last-child td {
    border-bottom: none;
}

.lzc-status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.lzc-status-pending {
    background: #fef3c7;
    color: #92400e;
}

.lzc-small-btn {
    padding: 6px 16px !important;
    font-size: 13px !important;
    border-radius: 4px !important;
}

/* Empty States */
.lzc-no-certificates {
    text-align: center;
    padding: 60px 20px;
}

.lzc-empty-icon {
    font-size: 72px;
    margin-bottom: 20px;
}

.lzc-no-certificates h3 {
    font-size: 24px;
    color: #1e293b;
    margin-bottom: 15px;
}

.lzc-no-certificates p {
    font-size: 16px;
    color: #64748b;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto 30px;
}

.lzc-cta-button {
    padding: 14px 32px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 30px !important;
    transition: all 0.3s ease !important;
}

.lzc-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4) !important;
}

/* Footer */
.lzc-certificates-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.lzc-help-text {
    color: #64748b;
    font-size: 14px;
}

.lzc-help-text a {
    color: #667eea;
    text-decoration: none;
}

.lzc-help-text a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .woocommerce-certificate-section {
        padding: 20px 15px;
    }
    
    .lzc-certificate-ready {
        padding: 20px;
    }
    
    .lzc-certificate-actions {
        flex-direction: column;
    }
    
    .lzc-view-button,
    .lzc-download-button {
        width: 100%;
        justify-content: center;
    }
    
    .lzc-certificates-grid {
        grid-template-columns: 1fr;
    }
    
    .lzc-pending-table {
        font-size: 13px;
    }
    
    .lzc-pending-table th,
    .lzc-pending-table td {
        padding: 10px;
    }
    
    .lzc-next-steps li {
        gap: 15px;
    }
    
    .lzc-step-number {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .woocommerce-certificate-section h2 {
        font-size: 20px;
    }
    
    .lzc-status-text {
        font-size: 16px;
    }
    
    .lzc-share-buttons {
        flex-wrap: wrap;
    }
    
    .lzc-pending-table {
        display: block;
        overflow-x: auto;
    }
}
