/* DSGN Brand Stylesheet - dsgn-style.css - URL SHORTENER VERSION */

@import url('https://fonts.googleapis.com/css2?family=Alatsi&family=Rubik:wght@300;400;500;700&display=swap');

/* --- Global Styles & Brand Background --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rubik', sans-serif;
    background: #1E2B41 url('DSGN_grey_back.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px;
    color: #E0E0E0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Alatsi', sans-serif;
    color: #ffffff;
    letter-spacing: 0.5px;
}

a {
    color: #9ab4ff;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #ffffff;
}

/* --- Navigation Styles --- */
.nav-bar {
    background: rgba(30, 43, 65, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 10px 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
    border: 1px solid #4a5568;
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-link a {
    color: #e0e0e0;
    font-weight: 500;
    padding: 5px 0;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    white-space: nowrap;
}

.nav-link a:hover {
    color: #545454;
    border-bottom: 2px solid #545454;
}

/* --- Main Container (White Box) --- */
.container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(5px);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 1200px;
    width: 100%;
    margin: 0 auto 32px auto;
    animation: fadeIn 0.6s ease-out;
    border: 1px solid #ddd;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    font-size: 2.5rem;
    color: #1E2B41;
    margin-bottom: 12px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.tagline {
    text-align: center;
    color: #666;
    margin-bottom: 24px;
    font-size: 1.1rem;
    font-weight: 600;
}

.info-box {
    background: #f0f4ff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 32px;
    text-align: center;
    color: #333;
    line-height: 1.6;
    border: 2px solid #545454;
}

/* --- Form/Input Styling --- */
.input-group {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

input[type="url"], .result input[type="text"], .modal-url-display input {
    width: 100%;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
    color: #333;
}

input[type="url"]:focus {
    border-color: #545454;
    box-shadow: 0 0 0 4px rgba(84, 84, 84, 0.1);
}

/* --- Buttons --- */
.btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #1E2B41 0%, #545454 100%);
    color: white;
    margin-bottom: 16px;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30, 43, 65, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-copy {
    padding: 12px 24px;
    background: #545454;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background: #1E2B41;
}

.btn-donate {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 12px 32px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 24px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-donate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 87, 108, 0.6);
}

/* --- Result & Error Boxes --- */
.result {
    display: none;
    padding: 20px;
    background: linear-gradient(135deg, #f0f4ff 0%, #f5f0ff 100%);
    border-radius: 12px;
    margin-top: 24px;
    animation: slideDown 0.4s ease-out;
    color: #333;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 200px;
    }
}

.result.show {
    display: block;
}

.short-url {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.short-url input {
    flex: 1;
    padding: 12px;
    border: 2px solid #545454;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
}

.error {
    color: #e74c3c;
    margin-top: 12px;
    display: none;
    padding: 12px;
    background: #ffebeb;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
}

.error.show {
    display: block;
}

/* --- Ad Space --- */
.ad-space {
    text-align: center;
    margin: 32px auto;
    padding: 20px;
    background: rgba(30, 43, 65, 0.9);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 1200px;
    width: 100%;
    border: 1px solid #4a5568;
}

/* --- SEO Content --- */
.seo-content {
    background: rgba(255, 255, 255, 0.98);
    padding: 48px;
    border-radius: 24px;
    max-width: 1200px;
    margin: 0 auto 32px auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    line-height: 1.8;
    color: #333;
    border: 1px solid #ddd;
    width: 100%;
}

.seo-content h2 {
    color: #1E2B41;
    font-size: 2rem;
    margin: 0 0 16px 0;
    font-family: 'Alatsi', sans-serif;
}

.seo-content h2:not(:first-child) {
    margin-top: 32px;
}

.seo-content h3 {
    color: #545454;
    font-size: 1.5rem;
    margin: 24px 0 12px 0;
    font-family: 'Alatsi', sans-serif;
}

.seo-content p {
    margin-bottom: 16px;
    color: #333;
}

.seo-content ul, .seo-content ol {
    margin: 16px 0 16px 32px;
    color: #333;
}

.seo-content li {
    margin-bottom: 8px;
}

.seo-content a {
    color: #545454;
    text-decoration: underline;
}

.seo-content a:hover {
    color: #1E2B41;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.feature-card {
    background: #f0f4ff;
    padding: 24px;
    border-radius: 12px;
    border: 2px solid rgba(84, 84, 84, 0.2);
}

.feature-card h4 {
    color: #1E2B41;
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-family: 'Alatsi', sans-serif;
}

.feature-card p {
    color: #333;
}

/* --- Modal --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 24px;
    padding: 40px;
    max-width: 950px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    z-index: 10;
}

.modal-close:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.modal-header h2 {
    font-size: 1.8rem;
    color: #1E2B41;
    margin-bottom: 8px;
}

.modal-header p {
    color: #666;
}

.modal-url-box {
    background: linear-gradient(135deg, #f0f4ff 0%, #f5f0ff 100%);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 2px solid rgba(84, 84, 84, 0.2);
}

.modal-url-display {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.modal-url-display input {
    flex: 1;
    padding: 14px;
    border: 2px solid #545454;
    border-radius: 8px;
    font-size: 1.1rem;
    background: white;
    font-weight: 500;
}

.modal-copy-btn {
    padding: 14px 28px;
    background: linear-gradient(135deg, #1E2B41 0%, #545454 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.modal-copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30, 43, 65, 0.4);
}

.social-share {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f0f4ff 0%, #f5f0ff 100%);
    border-radius: 12px;
    border: 2px solid rgba(84, 84, 84, 0.2);
}

.social-share p {
    margin: 0 0 12px 0;
    color: #666;
    font-weight: 600;
    font-size: 14px;
}

.social-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.social-btn.twitter {
    background: #1DA1F2;
}

.social-btn.facebook {
    background: #1877F2;
}

.social-btn.linkedin {
    background: #0A66C2;
}

.social-btn.whatsapp {
    background: #25D366;
}

.social-btn.email {
    background: #EA4335;
}

.modal-sponsor {
    text-align: center;
    margin-top: 16px;
}

.modal-sponsor p {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
    font-weight: 500;
}

.modal-sponsor a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.modal-sponsor a:hover {
    transform: scale(1.02);
}

.modal-sponsor img {
    width: 100%;
    max-width: 1200px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: block;
    margin: 0 auto;
}

/* --- Footer --- */
.footer {
    margin-top: 48px;
    text-align: center;
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
}

.footer-promo {
    margin: 32px auto 24px auto;
    max-width: 1200px;
}

.footer-promo a {
    display: block;
    transition: transform 0.3s ease;
}

.footer-promo a:hover {
    transform: scale(1.02);
}

.footer-promo img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.copyright {
    color: #A0A0A0;
    font-size: 0.9rem;
    padding: 1.5rem 0;
}

.copyright a {
    color: #A0A0A0;
    text-decoration: none;
    border-bottom: 1px solid rgba(160, 160, 160, 0.5);
    transition: border-color 0.3s ease;
}

.copyright a:hover {
    border-color: #ffffff;
    color: #ffffff;
}

/* --- Media Queries --- */
@media (max-width: 768px) {
    .container {
        padding: 32px 24px;
    }

    h1 {
        font-size: 2rem;
    }

    .nav-links {
        gap: 12px;
        flex-wrap: wrap;
    }

    .nav-link a {
        font-size: 0.85rem;
    }
}

@media (max-width: 640px) {
    .short-url {
        flex-direction: column;
    }

    .modal-content {
        padding: 24px;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .modal-url-display {
        flex-direction: column;
    }

    .modal-copy-btn {
        width: 100%;
    }

    .social-buttons {
        gap: 8px;
    }

    .social-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

