/* Website198 Template Store Styles */
:root {
    --primary-color: #2c5282;
    --secondary-color: #3182ce;
    --accent-color: #f6ad55;
    --success-color: #48bb78;
    --error-color: #f56565;
    --text-color: #2d3748;
    --light-bg: #f7fafc;
    --border-color: #e2e8f0;
}

/* General Styles */
.website198-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.website198-section {
    margin-bottom: 40px;
}

.website198-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.website198-subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Template Grid */
.website198-templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.website198-template-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.website198-template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.website198-template-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--border-color);
}

.website198-template-content {
    padding: 20px;
}

.website198-template-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.website198-template-category {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.website198-template-description {
    color: var(--text-color);
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.website198-template-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--success-color);
    margin-bottom: 15px;
}

.website198-template-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Buttons */
.website198-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.website198-btn-primary {
    background: var(--primary-color);
    color: white;
}

.website198-btn-primary:hover {
    background: var(--secondary-color);
    color: white;
}

.website198-btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.website198-btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.website198-btn-accent {
    background: var(--accent-color);
    color: white;
}

.website198-btn-accent:hover {
    background: #ed8936;
    color: white;
}

.website198-btn-small {
    padding: 8px 16px;
    font-size: 0.8rem;
}

.website198-btn-full {
    width: 100%;
}

/* Forms */
.website198-form {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.website198-form-group {
    margin-bottom: 20px;
}

.website198-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.website198-form-input,
.website198-form-textarea,
.website198-form-select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.website198-form-input:focus,
.website198-form-textarea:focus,
.website198-form-select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.website198-form-textarea {
    height: 120px;
    resize: vertical;
}

.website198-form-file {
    border: 2px dashed var(--border-color);
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.website198-form-file:hover {
    border-color: var(--secondary-color);
    background: var(--light-bg);
}

.website198-form-file.dragover {
    border-color: var(--success-color);
    background: rgba(72, 187, 120, 0.1);
}

/* Preview Section */
.website198-preview-section {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
}

.website198-preview-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.website198-preview-content {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.website198-preview-iframe {
    width: 100%;
    height: 400px;
    border: none;
}

.website198-preview-disclaimer {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
    font-size: 0.9rem;
}

/* Category Filter */
.website198-category-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.website198-category-btn {
    padding: 8px 20px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.website198-category-btn:hover,
.website198-category-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Loading States */
.website198-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.website198-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: website198-spin 1s linear infinite;
}

@keyframes website198-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Messages */
.website198-message {
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
}

.website198-message-success {
    background: rgba(72, 187, 120, 0.1);
    border: 1px solid var(--success-color);
    color: #2f855a;
}

.website198-message-error {
    background: rgba(245, 101, 101, 0.1);
    border: 1px solid var(--error-color);
    color: #c53030;
}

.website198-message-info {
    background: rgba(49, 130, 206, 0.1);
    border: 1px solid var(--secondary-color);
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .website198-templates-grid {
        grid-template-columns: 1fr;
    }
    
    .website198-preview-form {
        grid-template-columns: 1fr;
    }
    
    .website198-template-actions {
        flex-direction: column;
    }
    
    .website198-category-filter {
        flex-direction: column;
        align-items: center;
    }
    
    .website198-form {
        padding: 20px;
    }
    
    .website198-title {
        font-size: 2rem;
    }
}

/* Purchase Modal */
.website198-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.website198-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.website198-modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.website198-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.website198-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* Image Upload Preview */
.website198-image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.website198-image-preview img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

/* Template mockups */
.website198-template-mockup-large {
    width: 100%;
    height: 200px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background: white;
}

.template-mockup-header {
    height: 40px;
    width: 100%;
}

.template-mockup-content {
    padding: 15px;
    height: calc(100% - 40px);
}

.template-mockup-nav {
    height: 20px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
    margin-bottom: 10px;
}

.template-mockup-hero {
    height: 50px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.template-mockup-sections {
    display: flex;
    flex-direction: column;
    gap: 5px;
    height: calc(100% - 80px);
}

.template-section {
    flex: 1;
    border-radius: 3px;
    opacity: 0.7;
}

.template-category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.9);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
}

/* Radio template specific styles */
.radio-template .template-mockup-hero {
    position: relative;
}

.radio-template .template-mockup-hero::after {
    content: "🎵 LIVE";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
}

/* Sports template specific styles */
.sports-template .template-mockup-hero::after {
    content: "⚽ SPORTS";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
}

/* Business template specific styles */
.business-template .template-mockup-hero::after {
    content: "💼 BUSINESS";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
}

/* Medical template specific styles */
.medical-template .template-mockup-hero::after {
    content: "🏥 MEDICAL";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
}

/* Restaurant template specific styles */
.restaurant-template .template-mockup-hero::after {
    content: "🍽️ MENU";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
}

.website198-template-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--border-color);
    position: relative;
    overflow: hidden;
}

/* Feature List */
.website198-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.website198-feature {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.website198-feature-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.website198-feature-title {
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.website198-feature-description {
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.5;
}