﻿/* Base styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7f9fc;
    color: #333;
    min-width: 250px;
}

#page-container {
    min-width: 250px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Header styles */
header {
    background-color: #1e88e5;
    color: white;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

nav {
    display: flex;
}

    nav a {
        color: white;
        text-decoration: none;
        margin-left: 20px;
        transition: opacity 0.3s;
    }

/* Main content styles */
main {
    padding: 40px 0;
}

/* Hero section styles */
.hero {
    text-align: center;
    margin-bottom: 60px;
}

h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.tagline {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.url-form {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

input[type="url"] {
    padding: 12px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 10px;
}

button {
    background-color: #1e88e5;
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
}

/* Features section styles */
.features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.feature {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex-basis: 100%;
}

.feature-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #4fc3f7;
}

/* Footer styles */
footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

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

    .footer-links a {
        color: white;
        text-decoration: none;
        margin-right: 20px;
        margin-bottom: 10px;
    }

.social-links a {
    color: white;
    font-size: 1.5em;
    margin-left: 15px;
}

/* Responsive styles */
@media (max-width: 600px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    nav {
        flex-direction: column;
        margin-top: 10px;
    }

        nav a {
            margin: 10px 0;
        }

    h1 {
        font-size: 28px;
    }

    .tagline {
        font-size: 16px;
    }

    .url-form {
        padding: 15px;
    }

    input[type="url"] {
        font-size: 14px;
    }

    button {
        font-size: 14px;
        padding: 12px 24px;
    }

    .features {
        flex-direction: column;
    }

    .feature {
        flex-basis: 100%;
    }
}

/* Styles for shorturl.html */
.container-short {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.short-header {
    background-color: #1e88e5;
    color: white;
    padding: 15px 0;
}

.short-logo {
    font-size: 24px;
    font-weight: bold;
}

.short-main {
    padding: 20px 0;
}

.short-h1 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.url-display {
    background-color: #e3f2fd;
    border: 1px solid #1e88e5;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

#short-url {
    font-size: 18px;
    font-weight: bold;
    word-break: break-all;
}

#original-url {
    font-size: 14px;
    color: #666;
    word-break: break-all;
    margin-top: 5px;
}

.copy-button {
    background-color: #1e88e5;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
}

.stats {
    margin-top: 20px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.stat-value {
    font-weight: bold;
}
