/* PixVee Document Maker - Modern Professional Design */

/* Reset and Base Styles */
.pixvee-document-maker * {
    box-sizing: border-box;
}

.pixvee-document-maker {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    background: #f8fafc;
    min-height: 100vh;
}

/* Modern Header Design */
.pixvee-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 40px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.pixvee-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.pixvee-header-content {
    position: relative;
    z-index: 2;
}

.pixvee-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0 0 15px 0;
    text-shadow: 0 4px 8px rgba(0,0,0,0.2);
    letter-spacing: -0.02em;
    background: linear-gradient(45deg, #ffffff, #f0f8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pixvee-subtitle {
    font-size: 1.3rem;
    margin: 0 0 40px 0;
    opacity: 0.95;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Enhanced Search Bar */
.pixvee-search {
    max-width: 600px;
    margin: 0 auto 40px;
    position: relative;
}

.pixvee-search-input {
    width: 100%;
    padding: 18px 60px 18px 25px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
}

.pixvee-search-input:focus {
    outline: none;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    transform: translateY(-2px);
    background: rgba(255,255,255,1);
}

.pixvee-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pixvee-search-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Modern Category Tags */
.pixvee-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.pixvee-category-tag {
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.2);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.pixvee-category-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.pixvee-category-tag:hover::before {
    left: 100%;
}

.pixvee-category-tag:hover,
.pixvee-category-tag.active {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Main Content Area */
.pixvee-main-content {
    padding: 60px 40px;
    background: #f8fafc;
}

/* Enhanced Templates Grid */
.pixvee-templates-container {
    margin-bottom: 80px;
}

.pixvee-templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.pixvee-template-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

.pixvee-template-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    border-color: rgba(102, 126, 234, 0.2);
}

.pixvee-template-preview {
    position: relative;
    height: 220px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    overflow: hidden;
}

.pixvee-template-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pixvee-template-card:hover .pixvee-template-preview img {
    transform: scale(1.05);
}

.pixvee-template-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #94a3b8;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.pixvee-template-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.pixvee-template-card:hover .pixvee-template-overlay {
    opacity: 1;
}

.pixvee-edit-btn,
.pixvee-preview-btn {
    background: rgba(255,255,255,0.9);
    color: #667eea;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.pixvee-edit-btn:hover,
.pixvee-preview-btn:hover {
    background: white;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.pixvee-template-info {
    padding: 25px;
}

.pixvee-template-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #1e293b;
    line-height: 1.3;
}

.pixvee-template-category {
    color: #667eea;
    font-weight: 600;
    margin: 0 0 15px 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pixvee-template-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #64748b;
    align-items: center;
}

.pixvee-template-downloads {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pixvee-template-downloads::before {
    content: '⬇';
    font-size: 0.8rem;
}

/* Enhanced No Templates */
.pixvee-no-templates {
    text-align: center;
    padding: 80px 20px;
    color: #64748b;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.pixvee-no-templates-content svg {
    margin-bottom: 25px;
    opacity: 0.4;
    width: 80px;
    height: 80px;
}

.pixvee-no-templates h3 {
    margin: 0 0 15px 0;
    font-size: 1.8rem;
    color: #1e293b;
    font-weight: 600;
}

.pixvee-no-templates p {
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Modern Load More */
.pixvee-load-more {
    text-align: center;
    margin-top: 50px;
}

.pixvee-load-more-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.pixvee-load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Enhanced Footer */
.pixvee-footer {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: white;
    border-radius: 30px 30px 0 0;
    padding: 60px 40px 30px;
    margin-top: 80px;
    position: relative;
}

.pixvee-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.pixvee-footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 40px;
}

.pixvee-footer-section h4 {
    color: white;
    margin: 0 0 20px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.pixvee-footer-section p {
    color: #cbd5e1;
    margin: 0 0 20px 0;
    line-height: 1.7;
}

.pixvee-footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pixvee-footer-section li {
    margin-bottom: 12px;
}

.pixvee-footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.pixvee-footer-section a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #667eea;
    transition: width 0.3s ease;
}

.pixvee-footer-section a:hover {
    color: #667eea;
}

.pixvee-footer-section a:hover::after {
    width: 100%;
}

.pixvee-footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Enhanced Modal Styles */
.pixvee-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.pixvee-modal.active {
    opacity: 1;
    visibility: visible;
}

.pixvee-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.pixvee-modal.active .pixvee-modal-content {
    transform: scale(1) translateY(0);
}

.pixvee-modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}

.pixvee-modal-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: #1e293b;
}

.pixvee-modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #64748b;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.pixvee-modal-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.pixvee-modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

.pixvee-modal-footer {
    padding: 25px 30px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    background: #f8fafc;
}

/* Enhanced Button Styles */
.pixvee-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 0.95rem;
}

.pixvee-btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.pixvee-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.pixvee-btn-secondary {
    background: #64748b;
    color: white;
    box-shadow: 0 4px 15px rgba(100, 116, 139, 0.3);
}

.pixvee-btn-secondary:hover {
    background: #475569;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(100, 116, 139, 0.4);
}

/* Notification System */
.pixvee-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    color: #1e293b;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-left: 4px solid #667eea;
    max-width: 300px;
}

.pixvee-notification.show {
    transform: translateX(0);
}

.pixvee-notification-success {
    border-left-color: #10b981;
}

.pixvee-notification-error {
    border-left-color: #ef4444;
}

.pixvee-notification-warning {
    border-left-color: #f59e0b;
}

/* Loading States */
.pixvee-loading {
    position: relative;
}

.pixvee-loading::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pixvee-loading::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10000;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .pixvee-document-maker {
        padding: 0 20px;
    }
    
    .pixvee-header {
        padding: 60px 20px 40px;
    }
    
    .pixvee-title {
        font-size: 2.5rem;
    }
    
    .pixvee-subtitle {
        font-size: 1.1rem;
    }
    
    .pixvee-main-content {
        padding: 40px 20px;
    }
    
    .pixvee-templates-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .pixvee-footer {
        padding: 40px 20px 20px;
    }
    
    .pixvee-footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .pixvee-modal-content {
        margin: 20px;
        max-width: calc(100vw - 40px);
    }
    
    .pixvee-search-input {
        padding: 15px 50px 15px 20px;
        font-size: 1rem;
    }
    
    .pixvee-category-tag {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .pixvee-header {
        padding: 50px 15px 30px;
    }
    
    .pixvee-title {
        font-size: 2rem;
    }
    
    .pixvee-subtitle {
        font-size: 1rem;
    }
    
    .pixvee-main-content {
        padding: 30px 15px;
    }
    
    .pixvee-templates-grid {
        gap: 20px;
    }
    
    .pixvee-template-card {
        border-radius: 15px;
    }
    
    .pixvee-template-info {
        padding: 20px;
    }
    
    .pixvee-footer {
        padding: 30px 15px 15px;
    }
}
