/* PDF Güvenlik Sistemi - Modern CSS */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3b82f6;
    --secondary-color: #1e40af;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --background: #f8fafc;
    --card-background: #ffffff;
    --border-color: #e5e7eb;
    --border-radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 3rem;
    color: #fbbf24;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-top: 10px;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Upload Section */
.upload-section {
    display: flex;
    justify-content: center;
}

.upload-card {
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.upload-icon {
    margin-bottom: 20px;
}

.upload-icon i {
    font-size: 4rem;
    color: var(--primary-color);
}

.upload-card h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.upload-description {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* File Input Styles */
.file-input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

#pdfFile {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-input-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    border: 3px dashed var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.file-input-label:hover {
    border-color: var(--primary-color);
    background: #f0f9ff;
    transform: translateY(-2px);
}

.file-input-label i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.file-input-label span {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* File Info Styles */
.file-info {
    background: #f0f9ff;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
}

.file-details {
    display: flex;
    align-items: center;
    gap: 15px;
}

.file-details i {
    font-size: 2rem;
    color: #dc2626;
}

.file-text {
    flex: 1;
    text-align: left;
}

.file-name {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.file-size {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.remove-file {
    background: var(--error-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.remove-file:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* Security Options */
.security-options {
    margin: 30px 0;
    text-align: left;
}

.security-options h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.info-box {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    gap: 15px;
}

.info-box i {
    color: var(--warning-color);
    font-size: 1.5rem;
    margin-top: 3px;
}

.info-box ul {
    margin-top: 10px;
    padding-left: 20px;
}

.info-box li {
    margin-bottom: 5px;
    color: var(--text-primary);
}

/* Submit Button */
.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.submit-btn:enabled:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.submit-btn:disabled {
    background: var(--border-color);
    color: var(--text-secondary);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Progress Section */
.progress-section {
    margin-top: 30px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-text {
    text-align: center;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Result Sections */
.result-section, .error-section {
    margin-top: 30px;
}

.success-message, .error-message {
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
}

.success-message {
    background: #ecfdf5;
    border: 2px solid var(--success-color);
}

.success-message i {
    font-size: 3rem;
    color: var(--success-color);
    margin-bottom: 15px;
}

.success-message h3 {
    color: var(--success-color);
    margin-bottom: 10px;
}

.error-message {
    background: #fef2f2;
    border: 2px solid var(--error-color);
}

.error-message i {
    font-size: 3rem;
    color: var(--error-color);
    margin-bottom: 15px;
}

.error-message h3 {
    color: var(--error-color);
    margin-bottom: 10px;
}

.download-btn, .retry-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.download-btn {
    background: var(--success-color);
    color: white;
}

.download-btn:hover {
    background: #059669;
    transform: translateY(-2px);
}

.retry-btn {
    background: var(--error-color);
    color: white;
}

.retry-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

/* Features Section */
.features-section {
    margin-top: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    margin-bottom: 20px;
}

.feature-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    color: white;
    opacity: 0.8;
    margin-top: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .upload-card {
        padding: 30px 20px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .logo i {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .upload-card {
        padding: 20px 15px;
    }
    
    .file-input-label {
        padding: 30px 15px;
    }
    
    .file-input-label i {
        font-size: 2.5rem;
    }
    
    .file-input-label span {
        font-size: 1rem;
    }
}

/* Animasyonlar */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.upload-card {
    animation: fadeIn 0.6s ease-out;
}

.feature-card {
    animation: fadeIn 0.6s ease-out;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.4s;
}

/* Loading states */
.loading {
    pointer-events: none;
    opacity: 0.7;
}

.loading .submit-btn {
    background: var(--border-color);
    cursor: not-allowed;
}

/* Drag and drop states */
.file-input-label.drag-over {
    border-color: var(--primary-color);
    background: #f0f9ff;
    transform: scale(1.02);
}

/* Focus states for accessibility */
#pdfFile:focus + .file-input-label {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.submit-btn:focus,
.download-btn:focus,
.retry-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Image Gallery Styles */
.image-gallery {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.image-gallery h4 {
    color: var(--success-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-item {
    background: var(--card-background);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.gallery-item-info {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gallery-item-info span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.view-image {
    color: var(--primary-color);
    text-decoration: none;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.view-image:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

/* Responsive updates for gallery */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .gallery-item img {
        height: 120px;
    }
}