/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Status Bar styles removed as requested */

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

/* Header Styles */
header {
    width: 100%;
}

/* Browser bar styles removed as requested */

.mediafire-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #fff;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mediafire-logo {
    height: 40px;
    max-width: 100%;
    display: block;
    object-fit: contain;
}

.language {
    background-color: #e9eaec;
    padding: 5px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.language img {
    height: 24px;
    border-radius: 3px;
}

.auth-buttons {
    display: flex;
    align-items: center;
}

.signup, .login {
    display: inline-block;
    border: none;
    padding: 5px 10px;
    margin-left: 5px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
}

.signup {
    background-color: #0070e0;
    color: white;
}

.login {
    background-color: #0070e0;
    color: white;
}

/* Main Content Styles */
main {
    padding: 10px;
    background-color: #fff;
}

.download-card {
    display: flex;
    align-items: center;
    background-color: #0070e0;
    color: white;
    padding: 15px;
    border-radius: 5px 5px 0 0;
    position: relative;
}

.file-icon img {
    width: 48px;
    height: 48px;
    margin-right: 15px;
    background-color: transparent;
    border-radius: 0;
}

.file-info {
    flex-grow: 1;
}

.file-info h2 {
    font-size: 18px;
    margin-bottom: 5px;
}

.file-info p {
    font-size: 12px;
}

.download-icon i {
    font-size: 24px;
}

.download-speed {
    background-color: #333;
    color: white;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.download-faster {
    background-color: #0070e0;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.download-notice {
    padding: 15px;
    font-size: 13px;
    color: #666;
    border-bottom: 1px solid #eee;
}

.action-buttons {
    display: flex;
    border-bottom: 1px solid #eee;
}

.share, .save {
    flex: 1;
    text-align: center;
    padding: 15px;
    font-size: 13px;
    color: #666;
}

.share {
    pointer-events: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.save-link {
    flex: 1;
    text-decoration: none;
}

.share i, .save i {
    display: block;
    margin-bottom: 5px;
    font-size: 18px;
}

.upload-region {
    padding: 15px;
}

.upload-region h3 {
    font-size: 14px;
    margin-bottom: 10px;
    color: #666;
}

.map {
    position: relative;
}

.map img {
    width: 100%;
    border-radius: 5px;
    display: block;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255,255,255,0.8);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
}

.upload-info {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.flag img {
    width: 50px;
    height: 30px;
    margin-right: 15px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    object-fit: cover;
}

.info-text {
    font-size: 13px;
    color: #333;
}

.logo-box {
    padding: 10px;
    text-align: left;
    background-color: #ffffff;
    border: 1px solid #efefef;
    border-radius: 5px;
    margin: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: inline-block;
    width: auto;
}

.logo-box img {
    width: 60px;
    display: block;
}

/* Virus Scan Info */
.virus-scan-info {
    padding: 15px;
    margin: 10px 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.scan-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.scan-result {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.green-text {
    color: #4CAF50;
    font-weight: bold;
}

/* Section Divider */
.section-divider {
    border: 0;
    height: 1px;
    background-color: #efefef;
    margin: 20px 15px;
}

/* About MediaFire */
.about-mediafire {
    padding: 15px;
    margin: 10px 15px;
}

.mediafire-logo-footer {
    width: 75px;
    margin-bottom: 10px;
}

.about-mediafire h3 {
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.about-mediafire p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
}

.learn-more {
    color: #0070e0;
    text-decoration: none;
}

.learn-more:hover {
    text-decoration: underline;
}

/* Footer Styles */
footer {
    background-color: #f5f5f5;
    padding: 20px 15px;
}

footer h3 {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    margin-top: 20px;
}

footer ul {
    list-style: none;
}

footer li {
    margin-bottom: 8px;
}

footer ul li a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    display: block;
    padding: 5px 0;
}

footer a {
    color: #333;
    text-decoration: none;
    font-size: 13px;
}

.copyright {
    margin: 20px 0;
    font-size: 12px;
    color: #666;
}

.footer-links ul {
    display: flex;
    flex-wrap: wrap;
}

.footer-links li {
    margin-right: 15px;
    margin-bottom: 10px;
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    display: inline-block;
    width: 30px;
    height: 30px;
    background-color: #eee;
    border-radius: 3px;
    text-align: center;
    line-height: 30px;
    margin-right: 10px;
}

/* Bottom Navigation styles removed as requested */

/* For RTL support */
[dir="rtl"] .file-icon img {
    margin-right: 0;
    margin-left: 15px;
}

[dir="rtl"] .flag img {
    margin-right: 0;
    margin-left: 15px;
}

[dir="rtl"] .footer-links li {
    margin-right: 0;
    margin-left: 15px;
}

[dir="rtl"] .social-icons a {
    margin-right: 0;
    margin-left: 10px;
}

/* Screen reader only text */
.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;
}

/* Responsive adjustments */
@media (max-width: 360px) {
    .auth-buttons button {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .file-info h2 {
        font-size: 16px;
    }
    
    .download-speed {
        font-size: 12px;
    }
    
    .download-faster {
        font-size: 10px;
    }
}

/* CAPTCHA Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.3);
    max-width: 300px;
    width: 80%;
    margin: 0 auto;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.captcha-container {
    display: flex;
    justify-content: center;
}

.captcha-box {
    border: 1px solid #dadce0;
    border-radius: 4px;
    padding: 16px;
    display: flex;
    align-items: center;
    width: 100%;
    background-color: #f9f9f9;
}

.captcha-checkbox {
    margin-right: 15px;
}

.captcha-checkbox input {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.captcha-text {
    font-size: 14px;
    color: #222;
    flex-grow: 1;
}

.captcha-logo img {
    width: 32px;
    height: 32px;
}

/* Loading Effect */
.loading-effect {
    display: none;
    text-align: center;
    padding: 20px;
}

.loading-text {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
}

.download-card.loading {
    background-color: #eeeeee;
    transition: background-color 0.3s ease;
}

.download-card.loading .file-icon,
.download-card.loading .download-icon {
    visibility: hidden;
}

.download-card.loading .file-info h2,
.download-card.loading .file-info p {
    visibility: hidden;
}

.loading-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #333;
    font-size: 16px;
    font-weight: 500;
    display: none;
    width: 100%;
    text-align: center;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

/* Styles already merged with main .download-card selector */

/* Website Modal Styles */
.website-modal {
    z-index: 1001;
}

.website-modal-content {
    background-color: #fff;
    width: 95%;
    height: 90vh;
    max-width: none;
    margin: 2% auto;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalFadeIn 0.4s ease-in-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.website-modal-header {
    padding: 10px;
    background-color: #f8f8f8;
    border-bottom: 1px solid #eaeaea;
    text-align: right;
}

.close-website-modal {
    color: #aaa;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    padding: 0 10px;
}

.close-website-modal:hover {
    color: #555;
}

.website-modal-body {
    flex: 1;
    overflow: hidden;
}

#websiteFrame {
    width: 100%;
    height: 100%;
    border: none;
}
