/*
Theme Name: FileGuard
Description: Modern WordPress theme optimized for the FileGuard 3D watermarking plugin with WooCommerce integration.
Version: 1.0.0
Author: FileGuard Team
Requires at least: 5.0
Tested up to: 6.3
Requires PHP: 7.4
Text Domain: fileguard
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2563eb;
    text-decoration: none;
}

/* Navigation */
.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-navigation a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.main-navigation a:hover {
    color: #2563eb;
}

/* Main Content */
.site-main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* FileGuard Plugin Styles */
.fileguard-upload-container {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.fileguard-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 3rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.fileguard-upload-area:hover,
.fileguard-upload-area.dragover {
    border-color: #2563eb;
    background-color: #f0f9ff;
}

.fileguard-upload-icon {
    font-size: 3rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.fileguard-upload-text {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.fileguard-upload-subtext {
    font-size: 0.9rem;
    color: #9ca3af;
}

/* Form Styles */
.fileguard-form {
    display: grid;
    gap: 1rem;
    max-width: 600px;
}

.fileguard-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.fileguard-form-group label {
    font-weight: 600;
    color: #374151;
}

.fileguard-form-group input,
.fileguard-form-group select {
    padding: 0.75rem;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.fileguard-form-group input:focus,
.fileguard-form-group select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
}

/* Status and Results */
.fileguard-result {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #10b981;
    background: #f0fdf4;
}

.fileguard-result.error {
    border-left-color: #ef4444;
    background: #fef2f2;
}

.fileguard-result.warning {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

/* Progress Bar */
.fileguard-progress {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.fileguard-progress-bar {
    height: 100%;
    background: #2563eb;
    transition: width 0.3s;
}

/* Dashboard Styles */
.fileguard-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.fileguard-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.fileguard-card h3 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* File List */
.fileguard-file-list {
    list-style: none;
}

.fileguard-file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

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

.fileguard-file-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.fileguard-file-name {
    font-weight: 500;
    color: #1f2937;
}

.fileguard-file-meta {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .fileguard-upload-area {
        padding: 2rem 1rem;
    }
    
    .fileguard-dashboard {
        grid-template-columns: 1fr;
    }
}

/* WooCommerce Integration */
.woocommerce .fileguard-subscription-status {
    background: #e0f2fe;
    border: 1px solid #0277bd;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.woocommerce .fileguard-upgrade-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

/* Footer */
.site-footer {
    background: #1f2937;
    color: #9ca3af;
    padding: 2rem 0;
    text-align: center;
}

.site-footer a {
    color: #60a5fa;
    text-decoration: none;
}

.site-footer a:hover {
    color: #93c5fd;
}