* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-size: 16px; 
}

body { 
	font-family: 'Tajawal', sans-serif;
	background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
	min-height: 100vh;
	color: #f3f4f6; 
	direction: rtl;
	text-align: right;
}

.container {
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1rem;  
	padding-right: 1rem;
}

@media (min-width: 640px) { .container { max-width: 640px; } }
@media (min-width: 768px) { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }
@media (min-width: 1536px) { .container { max-width: 1536px; } }

.gradient-text {
	background: linear-gradient(90deg, #f72585 0%, #7209b7 50%, #3a0ca3 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.icon-space {
    margin-left: 0.5rem;
}

/* Header Styles */
.site-header { 
    padding-top: 1.5rem;    
    padding-bottom: 1.5rem;
    padding-left: 1rem;   
    padding-right: 1rem;
}
@media (min-width: 768px) { 
    .site-header {
        padding-left: 3rem; 
        padding-right: 3rem;
    }
}

.header-container { 
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area { 
    display: flex;
    align-items: center;
}

.header-logo-image {
    height: 45px;
    width: auto;
}

@media (min-width: 768px) { 
    .main-nav {
        display: flex;
    }
    .main-nav > .nav-link + .nav-link { 
        margin-right: 1.5rem;
    }
}
.nav-link { 
    color: inherit; 
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}
.nav-link:hover {
    color: #c4b5fd; 
}

.mobile-menu-button { 
    font-size: 1.5rem; 
    background: none;
    border: none;
    color: #e5e7eb; 
    cursor: pointer;
}
@media (min-width: 768px) { 
    .mobile-menu-button {
        display: none;
    }
}

/* Hero Section */
.hero-section { 
	padding-top: 2rem;
	padding-bottom: 2rem;
	padding-left: 1rem;
	padding-right: 1rem;
}

.hero-content { 
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}
.hero-title { 
	font-size: 2.25rem; 
	line-height: 2.5rem;
	font-weight: 700;
	margin-bottom: 1.5rem; 
}
@media (min-width: 768px) { 
	.hero-title {
		font-size: 2.5rem; 
		line-height: 1.2;
	}
}

.hero-subtitle { 
    font-size: 1.25rem; 
    line-height: 1.75rem;
    margin-bottom: 2rem; 
    color: #d1d5db; 
}
@media (min-width: 768px) { 
    .hero-subtitle {
        font-size: 1.5rem; 
        line-height: 2rem;
    }
}

/* Content Section */
.content-section { 
	padding-bottom: 2rem;
	padding-left: 1rem;   
	padding-right: 1rem;
}

.section-content {
	max-width: 72rem;
	margin: 0 auto;
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 1rem;
	padding: 2rem;
}

.section-title { 
	font-size: 1.75rem;    
	line-height: 2rem;
	font-weight: 700;     
	margin-bottom: 2rem;  
	text-align: center;
	background: linear-gradient(90deg, #f72585 0%, #7209b7 50%, #3a0ca3 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.content-text {
	font-size: 1.1rem;
	line-height: 1.8;
	color: #d1d5db;
	margin-bottom: 1.5rem;
	text-align: justify;
}

.content-text p {
    margin-bottom: 1rem;
}

.content-text a {
    color: #00c900;
    text-decoration: none;
}

.content-text a:hover {
    color: #fff;
}

.subsection-title {
	font-size: 1.5rem;
	font-weight: 600;
	margin: 0 0 1rem 0;
	color: #f3f4f6;
	padding-bottom: 0.5rem;
}

/* Image Styles */
.content-image {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 2rem auto;
	border-radius: 0.75rem;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Footer */
.site-footer-bottom { 
    padding-top: 2rem;    
    padding-bottom: 2rem;
    padding-left: 1rem;   
    padding-right: 1rem;
    background-color: rgba(17, 24, 39, 0.7); 
}
@media (min-width: 768px) { 
    .site-footer-bottom {
        padding-left: 2rem; 
        padding-right: 2rem;
    }
}
@media (min-width: 1024px) { 
    .site-footer-bottom {
        padding-left: 4rem; 
        padding-right: 4rem;
    }
}
.footer-main-content { 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}
@media (min-width: 768px) { 
    .footer-main-content {
        flex-direction: row;
    }
}
.footer-info { 
    margin-bottom: 1rem; 
    text-align: center;
}
@media (min-width: 768px) { 
    .footer-info {
        margin-bottom: 0;
        text-align: right;
    }
}
.footer-logo-area { 
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (min-width: 768px) { 
    .footer-logo-area {
        justify-content: flex-start; 
    }
}
.footer-logo-icon { 
    font-size: 1.5rem; 
    margin-left: 0.75rem; 
}
.footer-logo-text { 
    font-size: 1.25rem; 
    font-weight: 700;
}
.footer-tagline { 
    color: #9ca3af; 
    margin-top: 0.5rem; 
    font-size: 0.875rem; 
}

.footer-social-links { 
    display: flex;
	gap: 1rem;
}

.social-link { 
    color: #9ca3af; 
    transition: color 0.15s ease-in-out;
    font-size: 1.25rem; 
    text-decoration: none;
}
.social-link:hover {
    color: #fff; 
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul {
    display: flex;
    gap: 2rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #ff6600;
}

.footer-copyright-area { 
    border-top: 1px solid #1f2937; 
    margin-top: 2rem; 
    padding-top: 2rem; 
    text-align: center;
}
.copyright-text { 
    color: #6b7280; 
    font-size: 0.875rem; 
}
.copyright-link { 
    color: inherit; 
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}
.copyright-link:hover {
    color: #c4b5fd; 
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
	.hero-title {
		font-size: 1.75rem;
	}
	
	.controls-section {
		flex-direction: column;
		gap: 0.75rem;
	}
	
	.control-btn {
		width: 100%;
		justify-content: center;
	}
	
	.section-content {
		padding: 1.5rem;
		margin: 1rem;
	}
}

/* Responsive Mobile Menu */
@media (max-width: 768px) {
  .main-nav {
	position: fixed;
	top: 0;
	width: 100%;
	background: linear-gradient(to right, #9333ea, #ec4899);
	padding: 2rem;
	box-shadow: -2px 0 6px rgba(0, 0, 0, 0.1);
	transition: right 0.3s ease-in-out;
	z-index: 1001;
	align-items: center;
	display: none;
	gap: 1rem;
  }

  .main-nav.active {
    left: 0;
	display: flex;
	flex-direction: column;
  }

  .mobile-menu-button {
    display: block;
    z-index: 1002;
    background: none;
    border: none;
    font-size: 1.5rem;
  }

  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1000;
  }

  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

/* Desktop view */
@media (min-width: 769px) {
  .mobile-menu-button {
    display: none;
  }

  .menu-overlay {
    display: none;
  }
}

/* Tool Specific Styles */
.compressor-tool {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.drop-zone {
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 0.75rem;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: #f72585;
    background: rgba(247, 37, 133, 0.1);
}

.drop-zone-text {
    font-size: 1.125rem;
    color: #d1d5db;
}

.browse-text {
    color: #f72585;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.tool-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.controls-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    margin: 2rem auto 0 auto;
    width: 100%;
    max-width: 500px;
}

.quality-control {
    margin-bottom: 1.5rem;
}

.quality-slider {
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to left, #4d4d4d 0%, #f72585 100%);
    outline: none;
    appearance: none;
    margin-bottom: 0.5rem;
}

.quality-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f72585, #7209b7);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.quality-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f72585, #7209b7);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.quality-value {
    text-align: center;
    color: #f3f4f6;
    font-weight: 600;
    font-size: 1.125rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 0.375rem;
    margin-top: 0.5rem;
}

.quality-control {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.quality-slider {
    flex-grow: 1;
    margin-bottom: 0;
}

.quality-value {
    margin-top: 0;
}

.image-panels {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .image-panels {
        grid-template-columns: 1fr 1fr;
    }
}

.image-panel {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.panel-title {
    color: #f3f4f6;
    font-weight: 600;
    font-size: 1.125rem;
}

.download-btn {
    background: linear-gradient(45deg, #f72585, #7209b7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: transform 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.download-btn:hover {
    transform: translateY(-1px);
    color: white;
}

.panel-content {
    padding: 1.5rem;
}

.image-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    height: 100%;
    min-height: 200px;
}

@media (min-width: 640px) {
    .image-preview {
        flex-direction: column;
        align-items: center;
    }
}

.preview-container {
    width: 100%;
    max-width: 300px;
    min-height: 200px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dynamic-preview-container {
    width: auto;
    max-width: min(300px, 100%);
    min-width: 200px;
}

.preview-image {
	max-width: 300px;
    border-radius: 0.375rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.image-info {
    text-align: right;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.size-info {
    color: #f3f4f6;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.size-reduction {
    color: white;
    background-color: #10b981;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 0.375rem;
    white-space: nowrap;
}

[v-cloak] {
    display: none;
}

/* Processing indicator */
.processing-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #f72585;
    font-weight: 500;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(247, 37, 133, 0.3);
    border-top: 3px solid #f72585;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.compression-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    border-radius: 0.5rem;
}

.results-text {
    color: #d1d5db;
    line-height: 2;
    text-align: center;
}

.results-text p {
    margin: 0;
}

.size-value {
    font-weight: 700;
    color: #f3f4f6;
    margin: 0 0.25rem;
}