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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.header {
    background: #fff;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
    position: relative;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 15px;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-text {
    color: #ff0050;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

.tagline {
    color: #666;
    font-size: 0.8rem;
    font-weight: 400;
    margin-top: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #ff0050;
    color: white;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 0, 80, 0.2);
}

.share-btn:hover {
    background: #e6004a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 0, 80, 0.3);
}

.share-icon {
    font-size: 1rem;
}

.share-text {
    font-size: 0.9rem;
}

/* Language Switcher */
.language-switcher {
    position: relative;
    display: inline-block;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
    padding: 0.6rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lang-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.lang-icon {
    font-size: 1rem;
}

.lang-text {
    font-size: 0.85rem;
    font-weight: 700;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.language-switcher:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f3f4;
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: #f8f9fa;
    color: #ff0050;
    text-decoration: none;
}

.lang-option.active {
    background: #fff5f5;
    color: #ff0050;
    font-weight: 600;
}

.lang-option .flag {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.lang-option span:last-child {
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2.5rem 0;
    text-align: center;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

/* Download Tool */
.download-tool {
    max-width: 600px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    gap: 0;
    margin-bottom: 1rem;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.url-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    font-size: 1rem;
    outline: none;
    background: white;
}

.url-input::placeholder {
    color: #999;
}

.download-btn {
    background: #ff0050;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.download-btn:hover {
    background: #e6004a;
}

.download-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.tool-info {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
}

/* Status Notice */
.status-notice {
    margin-top: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.notice-content {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    backdrop-filter: blur(10px);
}

.notice-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.notice-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    line-height: 1.4;
}

.notice-text strong {
    color: white;
}

/* Ad Space Placeholders */
.ad-space {
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 0.9rem;
    margin: 1rem 0;
}

.ad-space.header-ad {
    margin: 0.5rem 0;
    padding: 10px;
}

.ad-space.sidebar-ad {
    width: 300px;
    height: 250px;
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
}

.ad-space.footer-ad {
    margin: 1rem 0 0 0;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Download Results */
.download-results {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    backdrop-filter: blur(10px);
}

.download-results h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.video-preview {
    margin-bottom: 2rem;
}

.video-preview video {
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
}

.download-options {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.download-option {
    background: white;
    color: #333;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 150px;
}

.download-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.download-option .quality {
    font-weight: 600;
    font-size: 1rem;
}

.download-option .format {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.25rem;
}

/* Utility Classes */
.hidden {
    display: none;
}

/* Download Notification */
.download-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
    max-width: 300px;
}

.download-notification.success {
    border-left: 4px solid #28a745;
}

.download-notification.success .notification-icon {
    color: #28a745;
}

.notification-content {
    display: flex;
    align-items: center;
    padding: 1rem;
    gap: 1rem;
}

.notification-icon {
    font-size: 1.5rem;
}

.notification-text strong {
    color: #333;
    display: block;
    margin-bottom: 0.25rem;
}

.notification-text p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* API Modal */
.api-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: #333;
}

.modal-body {
    padding: 1.5rem;
}

.modal-body h4 {
    color: #333;
    margin: 1.5rem 0 0.5rem;
}

.modal-body p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.modal-body ul {
    color: #666;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.modal-body ol {
    color: #666;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.code-block {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    border-left: 4px solid #ff0050;
}

.code-block code {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #333;
    white-space: pre-wrap;
}

.warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    color: #856404;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    text-align: right;
}

.btn-primary {
    background: #ff0050;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #e6004a;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Alternative Methods Styling */
.alternative-methods {
    display: grid;
    gap: 1rem;
    margin: 1rem 0;
}

.method-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid #007bff;
}

.method-card h5 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.method-card ol {
    margin: 0.5rem 0;
    padding-left: 1.2rem;
}

.method-card p {
    margin: 0.5rem 0;
}

.extract-url-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.extract-url-btn:hover {
    background: #0056b3;
}

.extract-url-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* URL Modal */
.url-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease-out;
}

.url-container {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    align-items: center;
}

.url-input-field {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: monospace;
    font-size: 0.9rem;
    background: #f8f9fa;
}

.copy-url-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 0.8rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.3s;
}

.copy-url-btn:hover {
    background: #218838;
}

.url-instructions {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 5px;
    padding: 1rem;
    margin: 1rem 0;
    color: #004085;
    line-height: 1.6;
}

.instruction-steps {
    margin: 1rem 0;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.step-num {
    background: #007bff;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-item div {
    flex: 1;
}

.step-item strong {
    color: #333;
    display: block;
    margin-bottom: 0.25rem;
}

.tiktok-link {
    color: #007bff;
    text-decoration: none;
    word-break: break-all;
    font-family: monospace;
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
}

.tiktok-link:hover {
    text-decoration: underline;
}

/* Error Modal */
.error-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease-out;
}

.alternative-download {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    border-left: 4px solid #ffc107;
}

.alternative-download h5 {
    color: #333;
    margin: 0 0 0.5rem 0;
}

.alternative-download p {
    color: #666;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.video-link {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    margin: 0.5rem 0;
    transition: background 0.3s;
}

.video-link:hover {
    background: #0056b3;
    text-decoration: none;
    color: white;
}

.url-copy-container {
    display: flex;
    gap: 0.5rem;
    margin: 0.5rem 0;
    align-items: center;
}

.url-copy-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.8rem;
    background: #f8f9fa;
}

.copy-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    white-space: nowrap;
    transition: background 0.3s;
}

.copy-btn:hover {
    background: #218838;
}

/* Share Modal */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease-out;
}

.share-modal.hidden {
    display: none;
}

.share-modal-content {
    background: white;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.share-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.3rem;
}

.close-share-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.close-share-modal:hover {
    color: #333;
    background: #f5f5f5;
}

.share-modal-body {
    padding: 1.5rem;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    border: 1px solid #eee;
}

.share-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #333;
}

.share-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.share-icon-wrapper.facebook { background: #1877f2; }
.share-icon-wrapper.twitter { background: #1da1f2; }
.share-icon-wrapper.linkedin { background: #0077b5; }
.share-icon-wrapper.reddit { background: #ff4500; }
.share-icon-wrapper.telegram { background: #0088cc; }
.share-icon-wrapper.whatsapp { background: #25d366; }

.share-platform-icon {
    color: white;
}

.share-url-section {
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
}

.share-url-section label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 600;
}

.share-url-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.share-url-container input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.9rem;
    background: #f8f9fa;
}

.copy-share-url {
    background: #28a745;
    color: white;
    border: none;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.3s;
}

.copy-share-url:hover {
    background: #218838;
}

/* Download Instructions Modal */
.download-instructions-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease-out;
}

.download-instructions-modal .modal-content {
    background: white;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

.download-instructions-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.download-instructions-modal .modal-body {
    padding: 1.5rem;
}

.download-instructions-modal ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.download-instructions-modal li {
    margin: 0.5rem 0;
    line-height: 1.5;
}

.url-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.url-display {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.8rem;
    margin: 0.5rem 0;
    background: white;
}

.copy-url-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.copy-url-btn:hover {
    background: #0056b3;
}

/* Download Failed Modal */
.download-failed-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease-out;
}

.download-failed-modal .modal-content {
    background: white;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

.error-reasons ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.error-reasons li {
    margin: 0.5rem 0;
    color: #666;
}

.alternative-solutions ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.alternative-solutions li {
    margin: 0.8rem 0;
    line-height: 1.5;
}

.contact-support {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.contact-support a {
    color: #ff0050;
    text-decoration: none;
    font-weight: 600;
}

.contact-support a:hover {
    text-decoration: underline;
}

.retry-section {
    text-align: center;
    margin: 1.5rem 0;
}

.retry-btn {
    background: #ff0050;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 0, 80, 0.2);
}

.retry-btn:hover {
    background: #e6004a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 0, 80, 0.3);
}

/* Legal Pages */
.legal-page {
    padding: 2rem 0;
    background: #fff;
    min-height: 70vh;
}

.legal-page .container {
    max-width: 800px;
}

.legal-page h1 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 0.5rem;
    border-bottom: 3px solid #ff0050;
    padding-bottom: 0.5rem;
}

.last-updated {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.legal-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #ff0050;
}

.legal-section h2 {
    color: #333;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.legal-section p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.legal-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.legal-section ul li {
    color: #555;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.legal-section ul li strong {
    color: #333;
}

.legal-section a {
    color: #ff0050;
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

.contact-info-box {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.contact-info-box p {
    margin: 0.5rem 0;
    color: #004085;
}

/* Contact Page */
.contact-page {
    padding: 2rem 0;
    background: #fff;
    min-height: 70vh;
}

.contact-page .container {
    max-width: 1000px;
}

.contact-page h1 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 0.5rem;
    border-bottom: 3px solid #ff0050;
    padding-bottom: 0.5rem;
}

.contact-intro {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-align: center;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-method {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #ff0050;
    text-align: center;
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-method h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.contact-method p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.contact-link {
    display: inline-block;
    background: #ff0050;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
    margin: 0.5rem 0;
}

.contact-link:hover {
    background: #e6004a;
    text-decoration: none;
}

.response-time {
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
    margin-top: 0.5rem;
}

.contact-form-section h2 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.contact-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff0050;
    box-shadow: 0 0 0 2px rgba(255, 0, 80, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: #ff0050;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

.submit-btn:hover {
    background: #e6004a;
}

.contact-info {
    margin-top: 3rem;
}

.contact-info h2 {
    color: #333;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    text-align: center;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.info-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #007bff;
}

.info-item h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.info-item p {
    color: #666;
    line-height: 1.5;
    font-size: 0.95rem;
}



/* How to Use Section */
.how-to-use {
    padding: 2.5rem 0;
    background: #f8f9fa;
}

.how-to-use h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.step-number {
    background: #ff0050;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
    color: #333;
}

.step-content p {
    color: #666;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Features Section */
.features {
    padding: 2.5rem 0;
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature {
    text-align: center;
    padding: 1.5rem;
    border-radius: 12px;
    transition: transform 0.3s;
    background: #fafafa;
}

.feature:hover {
    transform: translateY(-3px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

.feature h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: #333;
}

.feature p {
    color: #666;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* About Section */
.about-section {
    padding: 2.5rem 0;
    background: white;
}

.about-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    margin-bottom: 1.2rem;
    line-height: 1.6;
    color: #555;
    font-size: 1rem;
}

.about-text h3 {
    font-size: 1.3rem;
    margin: 1.5rem 0 0.8rem;
    color: #333;
}

.about-text ul {
    margin-bottom: 1.5rem;
    padding-left: 1.2rem;
}

.about-text ul li {
    margin-bottom: 0.6rem;
    line-height: 1.5;
    color: #555;
    font-size: 0.95rem;
}

.about-text ul li strong {
    color: #ff0050;
}

/* Recent Downloads Section */
.recent-downloads {
    padding: 2.5rem 0;
    background: #f8f9fa;
}

.recent-downloads h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0.8rem;
    color: #333;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.recent-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.2rem;
}

.recent-item {
    background: white;
    padding: 1.2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.recent-item .title {
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #333;
    font-size: 0.95rem;
}

.recent-item .info {
    font-size: 0.85rem;
    color: #666;
}

/* Tips Section */
.tips-section {
    padding: 4rem 0;
    background: white;
}

.tips-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.tip-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid #ff0050;
    transition: transform 0.3s, box-shadow 0.3s;
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.tip-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
}

.tip-card p {
    color: #666;
    line-height: 1.6;
}

/* FAQ Section */
.faq {
    padding: 2.5rem 0;
}

.faq h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.faq-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: #333;
}

.faq-item p {
    color: #666;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* SEO Content Section */
.seo-content {
    padding: 2.5rem 0;
    background: #f8f9fa;
}

.seo-content h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
}

.seo-text {
    max-width: 800px;
    margin: 0 auto;
}

.seo-text h3 {
    font-size: 1.3rem;
    margin: 1.5rem 0 0.8rem;
    color: #333;
}

.seo-text p {
    margin-bottom: 1.2rem;
    line-height: 1.6;
    color: #555;
    font-size: 0.95rem;
}

.seo-text ul {
    margin-bottom: 1.5rem;
    padding-left: 1.2rem;
}

.seo-text ul li {
    margin-bottom: 0.6rem;
    line-height: 1.5;
    color: #555;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 2rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 0.8rem;
    color: #ff0050;
    font-size: 1.1rem;
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #ccc;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.4rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer-section ul li a:hover {
    color: #ff0050;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #555;
    color: #ccc;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: #ff0050;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

.disclaimer {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #999;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1200px) {
    .ad-space.sidebar-ad {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.6rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .input-group {
        flex-direction: column;
        border-radius: 12px;
    }

    .url-input,
    .download-btn {
        border-radius: 0;
        padding: 1rem 1.2rem;
    }

    .url-input {
        border-radius: 12px 12px 0 0;
    }

    .download-btn {
        border-radius: 0 0 12px 12px;
    }

    .header .container {
        padding: 0.6rem 12px;
    }

    .share-text {
        display: none;
    }

    .share-btn {
        padding: 0.8rem;
        border-radius: 50%;
        width: 45px;
        height: 45px;
        justify-content: center;
    }

    .share-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .tagline {
        font-size: 0.75rem;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .step {
        padding: 1.2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .feature {
        padding: 1.2rem;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .download-options {
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
    }

    .download-option {
        width: 100%;
        max-width: 220px;
    }

    .recent-list {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.2rem;
    }

    .download-notification {
        right: 8px;
        left: 8px;
        max-width: none;
    }

    section {
        padding: 2rem 0;
    }

    h2 {
        font-size: 1.8rem !important;
    }

    .about-text p,
    .seo-text p {
        font-size: 0.95rem;
    }

    .status-notice {
        margin-top: 0.8rem;
    }

    .notice-content {
        flex-direction: column;
        text-align: center;
        gap: 0.4rem;
        padding: 0.6rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .hero {
        padding: 1.5rem 0;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .url-input,
    .download-btn {
        padding: 0.9rem 1rem;
        font-size: 0.9rem;
    }

    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .feature-icon {
        font-size: 2rem;
    }

    .video-preview video {
        max-width: 200px;
    }

    .download-results {
        padding: 1.2rem;
    }

    .faq-item,
    .tip-card {
        padding: 1.2rem;
    }

    h2 {
        font-size: 1.6rem !important;
    }

    .about-text h3,
    .seo-text h3 {
        font-size: 1.2rem;
    }

    section {
        padding: 1.5rem 0;
    }

    .header .container {
        padding: 0.5rem 10px;
    }

    .footer {
        padding: 1.5rem 0 0.8rem;
    }

    .url-container {
        flex-direction: column;
        align-items: stretch;
    }

    .copy-url-btn {
        margin-top: 0.4rem;
    }

    /* Contact page responsive */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-method {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}
