* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Tajawal', sans-serif; } :root { --primary-color: #4a6cf7; --primary-light: #eef2ff; --secondary-color: #3b5bdb; --accent-color: #0daabc; --light-color: #f8f9fc; --dark-color: #2d3748; --success-color: #20c997; --warning-color: #fab005; --danger-color: #fa5252; --box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08); --border-radius: 14px; --transition: all 0.3s ease; } body { background: linear-gradient(135deg, #f9fbfd 0%, #f0f5ff 100%); color: var(--dark-color); line-height: 1.8; min-height: 100vh; display: flex; flex-direction: column; } .navbar { background: white; padding: 1.2rem 5%; box-shadow: var(--box-shadow); position: sticky; top: 0; z-index: 1000; } .navbar-container { display: flex; justify-content: space-between; align-items: center; max-width: 1400px; margin: 0 auto; } .logo { display: flex; align-items: center; color: var(--primary-color); font-family: 'El Messiri', sans-serif; font-size: 1.8rem; font-weight: 700; text-decoration: none; letter-spacing: -0.5px; } .logo i { margin-left: 0.5rem; font-size: 2rem; color: var(--accent-color); } .nav-links { display: flex; list-style: none; } .nav-links li { margin: 0 0.8rem; } .nav-links a { color: var(--dark-color); text-decoration: none; font-size: 1.1rem; font-weight: 500; padding: 0.6rem 1rem; border-radius: 50px; transition: var(--transition); } .nav-links a:hover { background: var(--primary-light); color: var(--primary-color); } .hero { padding: 5rem 5% 3rem; text-align: center; background: url('data:image/svg+xml;utf8,') top/cover no-repeat, white; } .hero-container { max-width: 1000px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; } .hero h1 { font-family: 'El Messiri', sans-serif; font-size: 2.5rem; margin-bottom: 1.2rem; line-height: 1.3; background: linear-gradient(135deg, var(--primary-color), var(--accent-color)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 0 2px 4px rgba(0,0,0,0.05); } .hero p { font-size: 1.2rem; color: #555; max-width: 700px; margin-bottom: 2.2rem; line-height: 1.7; } .url-form { width: 100%; max-width: 800px; background: white; border-radius: var(--border-radius); padding: 1.5rem; box-shadow: var(--box-shadow); border: 1px solid rgba(74, 108, 247, 0.15); } .form-group { margin-bottom: 1rem; } .url-label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: var(--dark-color); font-size: 1rem; } .url-input { width: 100%; padding: 1rem; border: 2px solid #e6edff; border-radius: var(--border-radius); font-size: 1rem; transition: var(--transition); background: #f9fbfe; } .url-input:focus { border-color: var(--primary-color); outline: none; box-shadow: 0 0 0 4px rgba(74, 108, 247, 0.15); background: white; } .alias-container { display: flex; gap: 0.8rem; align-items: center; flex-wrap: wrap; } .alias-input { flex: 1; min-width: 150px; padding: 1rem; border: 2px solid #e6edff; border-radius: var(--border-radius); font-size: 1rem; transition: var(--transition); background: #f9fbfe; } .alias-input:focus { border-color: var(--accent-color); outline: none; box-shadow: 0 0 0 4px rgba(13, 170, 188, 0.15); background: white; } .alias-btn { padding: 1rem; background: var(--primary-light); color: var(--primary-color); border: none; border-radius: var(--border-radius); font-weight: 600; cursor: pointer; transition: var(--transition); display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; } .alias-btn:hover { background: var(--primary-color); color: white; } .btn-shorten { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); color: white; font-weight: 600; padding: 1rem; font-size: 1.1rem; border-radius: var(--border-radius); width: 100%; border: none; cursor: pointer; transition: var(--transition); box-shadow: 0 4px 12px rgba(74, 108, 247, 0.3); display: flex; justify-content: center; align-items: center; gap: 0.8rem; } .btn-shorten:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(74, 108, 247, 0.4); } .btn-shorten.loading { background: linear-gradient(135deg, #a0a0a0, #808080); cursor: not-allowed; } .results { padding: 2rem 5% 3rem; max-width: 1000px; margin: 0 auto; width: 100%; } .result-container { background: white; border-radius: var(--border-radius); padding: 1.5rem; margin-top: 1.5rem; box-shadow: var(--box-shadow); display: none; animation: fadeIn 0.6s ease; border: 1px solid rgba(74, 108, 247, 0.1); } .result-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; padding-bottom: 1.2rem; border-bottom: 1px solid #f0f4ff; } .result-title { font-family: 'El Messiri', sans-serif; font-size: 1.4rem; color: var(--dark-color); display: flex; align-items: center; gap: 0.6rem; } .result-title i { color: var(--accent-color); font-size: 1.3rem; } .original-url { color: #666; font-size: 1rem; margin-bottom: 1.2rem; word-break: break-all; padding: 1rem; background: #f9fbfe; border-radius: 10px; border-left: 3px solid var(--accent-color); } .result-content { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; } .short-url { flex: 1; min-width: 200px; color: var(--primary-color); font-size: 1.1rem; font-weight: 700; word-break: break-all; padding: 0.8rem; background: #f0f5ff; border-radius: 10px; } .btn-copy { background: linear-gradient(135deg, var(--accent-color), #0d9aab); color: white; padding: 0.8rem 1.5rem; border-radius: var(--border-radius); font-weight: 600; font-size: 1rem; display: flex; align-items: center; gap: 0.6rem; border: none; cursor: pointer; transition: var(--transition); box-shadow: 0 4px 12px rgba(13, 170, 188, 0.3); } .btn-copy:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(13, 170, 188, 0.4); } .btn-copy.copied { background: linear-gradient(135deg, var(--success-color), #12b886); } .btn-copy.copied::after { content: "تم النسخ!"; margin-right: 0.5rem; } .error-message { color: var(--danger-color); background: rgba(250, 82, 82, 0.1); padding: 0.8rem; border-radius: var(--border-radius); margin-top: 1rem; border-left: 3px solid var(--danger-color); display: none; font-weight: 500; font-size: 0.95rem; } .stats { padding: 3rem 5%; background: linear-gradient(135deg, #4a6cf7 0%, #0daabc 100%); color: white; text-align: center; } .section-header { text-align: center; max-width: 800px; margin: 0 auto 3rem; } .section-title { font-family: 'El Messiri', sans-serif; font-size: 2rem; color: white; margin-bottom: 1rem; position: relative; display: inline-block; } .section-title::after { content: ""; position: absolute; bottom: -8px; right: 50%; transform: translateX(50%); width: 80px; height: 4px; background: white; border-radius: 10px; opacity: 0.7; } .stats-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; } .stat-card { background: rgba(255, 255, 255, 0.1); border-radius: var(--border-radius); padding: 1.8rem 1.2rem; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); backdrop-filter: blur(4px); border: 1px solid rgba(255, 255, 255, 0.15); transition: var(--transition); } .stat-card:hover { transform: translateY(-8px); background: rgba(255, 255, 255, 0.15); } .stat-icon { font-size: 2.8rem; margin-bottom: 1.2rem; color: white; opacity: 0.9; } .stat-number { font-family: 'El Messiri', sans-serif; font-size: 2.5rem; font-weight: 700; margin-bottom: 0.5rem; background: linear-gradient(to bottom, #ffffff, #e6f7ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 0 2px 4px rgba(0,0,0,0.1); } .stat-title { font-size: 1.3rem; opacity: 0.9; margin-bottom: 0.5rem; } .stat-period { font-size: 0.9rem; opacity: 0.8; } .top-urls { grid-column: span 2; text-align: right; padding: 1.5rem; } .top-urls-title { font-family: 'El Messiri', sans-serif; font-size: 1.6rem; margin-bottom: 1.5rem; color: white; display: flex; align-items: center; gap: 0.8rem; justify-content: center; } .top-urls-title i { color: var(--accent-color); } .url-list { list-style: none; max-height: 250px; overflow-y: auto; } .url-item { display: flex; justify-content: space-between; align-items: center; padding: 0.8rem; background: rgba(255, 255, 255, 0.08); border-radius: var(--border-radius); margin-bottom: 0.8rem; transition: var(--transition); } .url-item:hover { background: rgba(255, 255, 255, 0.15); transform: translateX(-5px); } .url-info { flex: 1; overflow: hidden; } .url-short { font-weight: 600; color: white; margin-bottom: 0.3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .url-original { font-size: 0.9rem; color: rgba(255, 255, 255, 0.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .url-visits { background: rgba(255, 255, 255, 0.2); color: white; padding: 0.3rem 0.8rem; border-radius: 20px; font-weight: 600; min-width: 70px; text-align: center; font-size: 0.9rem; } .features { padding: 5rem 5%; background: linear-gradient(to bottom, #f8fbff 0%, #f0f7ff 100%); } .features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; max-width: 1200px; margin: 0 auto; } .feature-card { background: white; border-radius: var(--border-radius); padding: 2rem 1.5rem; box-shadow: var(--box-shadow); text-align: center; transition: var(--transition); border: 1px solid rgba(74, 108, 247, 0.08); position: relative; overflow: hidden; z-index: 1; } .feature-card::before { content: ""; position: absolute; top: 0; right: 0; width: 100%; height: 5px; background: linear-gradient(to right, var(--primary-color), var(--accent-color)); z-index: -1; transition: var(--transition); } .feature-card:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(58, 59, 69, 0.12); } .feature-card:hover::before { height: 100%; opacity: 0.03; } .feature-icon { width: 80px; height: 80px; background: rgba(74, 108, 247, 0.08); border-radius: 18px; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; color: var(--primary-color); font-size: 2.3rem; transition: var(--transition); } .feature-card:hover .feature-icon { background: rgba(74, 108, 247, 0.15); transform: scale(1.05); } .feature-title { font-family: 'El Messiri', sans-serif; font-size: 1.5rem; color: var(--dark-color); margin-bottom: 1rem; } .feature-desc { color: #666; font-size: 1.05rem; line-height: 1.7; } .footer { background: linear-gradient(135deg, #2d3748, #1a202c); color: white; padding: 4rem 5% 2rem; margin-top: auto; position: relative; } .footer::before { content: ""; position: absolute; top: 0; right: 0; width: 100%; height: 8px; background: linear-gradient(to right, var(--primary-color), var(--accent-color)); } .footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2.5rem; max-width: 1200px; margin: 0 auto 3rem; } .footer-about { position: relative; } .footer-logo { font-family: 'El Messiri', sans-serif; font-size: 1.8rem; font-weight: 700; margin-bottom: 1.2rem; display: flex; align-items: center; color: white; } .footer-logo i { margin-left: 0.6rem; color: var(--accent-color); } .footer-about p { font-size: 1rem; line-height: 1.8; opacity: 0.85; margin-bottom: 1.5rem; } .social-links { display: flex; gap: 1rem; } .social-link { width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, 0.08); display: flex; align-items: center; justify-content: center; color: white; font-size: 1.2rem; transition: var(--transition); } .social-link:hover { background: var(--primary-color); transform: translateY(-5px); } .footer-title { font-family: 'El Messiri', sans-serif; font-size: 1.3rem; margin-bottom: 1.5rem; position: relative; padding-bottom: 0.6rem; } .footer-title::after { content: ""; position: absolute; bottom: 0; right: 0; width: 40px; height: 3px; background: var(--accent-color); border-radius: 10px; } .footer-links { list-style: none; } .footer-links li { margin-bottom: 0.9rem; } .footer-links a { color: rgba(255, 255, 255, 0.85); text-decoration: none; transition: var(--transition); font-size: 1rem; display: flex; align-items: center; gap: 0.6rem; } .footer-links a:hover { color: var(--accent-color); transform: translateX(5px); } .footer-links i { font-size: 0.8rem; color: var(--accent-color); } .copyright { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 1rem; opacity: 0.7; } @keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } @keyframes countUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .mobile-menu-btn { display: none; background: none; border: none; color: var(--primary-color); font-size: 1.5rem; cursor: pointer; z-index: 1001; } .mobile-menu { position: fixed; top: 0; right: 0; width: 80%; max-width: 280px; height: 100vh; background: white; box-shadow: -5px 0 15px rgba(0,0,0,0.1); transform: translateX(100%); transition: var(--transition); z-index: 1000; padding-top: 4.5rem; overflow-y: auto; } .mobile-menu.active { transform: translateX(0); } .mobile-menu .nav-links { flex-direction: column; padding: 1.5rem; } .mobile-menu .nav-links li { margin: 0.8rem 0; } .mobile-menu .nav-links a { display: block; padding: 0.8rem; font-size: 1.1rem; } .mobile-menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 999; opacity: 0; visibility: hidden; transition: var(--transition); } .mobile-menu-overlay.active { opacity: 1; visibility: visible; } .stat-bar { height: 8px; background: rgba(255, 255, 255, 0.2); border-radius: 4px; margin-top: 0.8rem; overflow: hidden; } .stat-bar-inner { height: 100%; background: white; border-radius: 4px; width: 0; transition: width 1.5s ease; } @media (max-width: 992px) { .hero h1 { font-size: 2.2rem; } .nav-links { display: none; } .mobile-menu-btn { display: block; } .section-title { font-size: 1.8rem; } .top-urls { grid-column: span 1; } } @media (max-width: 768px) { .hero { padding: 3.5rem 5% 2rem; } .hero h1 { font-size: 2rem; } .hero p { font-size: 1.1rem; } .url-form { padding: 1.2rem; } .stats-container { grid-template-columns: 1fr; } .top-urls { grid-column: span 1; } .feature-card { padding: 1.8rem 1.2rem; } .feature-icon { width: 70px; height: 70px; font-size: 2rem; } .feature-title { font-size: 1.4rem; } .footer-logo { font-size: 1.6rem; } } @media (max-width: 576px) { .hero h1 { font-size: 1.7rem; } .logo { font-size: 1.6rem; } .result-content { flex-direction: column; } .btn-copy { width: 100%; } .stat-number { font-size: 2rem; } .alias-container { flex-direction: column; } .alias-btn { width: 100%; } .section-title { font-size: 1.6rem; } .url-item { flex-direction: column; align-items: flex-start; gap: 0.5rem; } .url-visits { align-self: flex-end; } } .copyright { font-size: 0.9rem; opacity: 0.7; } .copyright a { color: var(--primary-color); text-decoration: none; transition: var(--transition-normal); } .copyright a:hover { text-decoration: underline; } .fa-heart { color: var(--secondary-color); margin: 0 5px; } .pulse { animation: heart-pulse 1.5s ease infinite; } @keyframes heart-pulse { 0% { transform: scale(1); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }