/* Define CSS variables for colors and fonts */
:root {
    --primary-text-color: #212529; /* Dark gray for text */
    --secondary-text-color: #495057; /* Medium gray for titles */
    --link-color: #007bff; /* Standard blue for links */
    --link-hover-color: #0056b3; /* Darker blue for link hover */
    --icon-color: #6c757d; /* Gray for icons */
    --youtube-icon-color: #FF0000; /* Red for YouTube icon */
    --background-color: #f8f9fa; /* Light gray background */
    --container-background: #ffffff; /* White container background */
    --border-color: #dee2e6; /* Light gray border */
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --container-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --border-radius: 8px;
}

/* Basic Reset and Body Styling */
body {
    margin: 0;
    padding: 20px;
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--primary-text-color);
    line-height: 1.6;
}

/* Container for the links section */
.links-container {
    max-width: 700px;
    margin: 20px auto; /* Center container */
    padding: 25px 30px;
    background-color: var(--container-background);
    border-radius: var(--border-radius);
    box-shadow: var(--container-shadow);
}

/* Main Heading */
.links-container h1 {
    font-size: 1.75rem; /* Slightly larger heading */
    font-weight: 600;
    color: var(--primary-text-color);
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

/* Links List Styling */
.links-list {
    list-style: none; /* Remove default bullet points */
    padding: 0;
    margin: 0;
}

/* Individual Link Item Styling */
.link-item {
    display: flex; /* Use flexbox for layout */
    align-items: flex-start; /* Align items to the start (top) */
    padding: 15px 0; /* Padding top and bottom */
    border-bottom: 1px solid var(--border-color); /* Separator line */
    transition: background-color 0.2s ease-in-out; /* Smooth background transition on hover */
}

/* Remove border from the last item */
.link-item:last-child {
    border-bottom: none;
    padding-bottom: 5px; /* Adjust padding if needed */
}

/* Optional: Subtle hover effect for the list item */
.link-item:hover {
    /* background-color: #f1f3f5; */ /* Uncomment for subtle row highlight */
}

/* Icon Container */
.link-icon {
    flex-shrink: 0; /* Prevent icon from shrinking */
    width: 30px; /* Fixed width for alignment */
    margin-right: 15px; /* Space between icon and text */
    font-size: 1.4em; /* Icon size */
    color: var(--icon-color); /* Default icon color */
    text-align: center;
    padding-top: 3px; /* Fine-tune vertical alignment with title */
}

/* Specific YouTube Icon Color */
.link-icon.youtube-icon {
    color: var(--youtube-icon-color);
}

/* Content Area (Title and URL) */
.link-content {
    flex-grow: 1; /* Allow content to take remaining space */
    display: flex;
    flex-direction: column; /* Stack title and URL vertically */
}

/* Link Title Styling */
.link-title {
    font-weight: 600; /* Bolder title */
    font-size: 1rem;
    color: var(--secondary-text-color);
    margin-bottom: 4px; /* Space between title and URL */
}

/* Link URL Styling */
.link-url {
    font-size: 0.95rem;
    color: var(--link-color);
    text-decoration: none; /* Remove underline by default */
    word-break: break-all; /* Prevent long URLs from overflowing */
    transition: color 0.2s ease-in-out; /* Smooth color transition */
}

/* Link URL Hover Effect */
.link-url:hover {
    color: var(--link-hover-color);
    text-decoration: underline; /* Add underline on hover */
}

/* Responsive adjustments (optional) */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    .links-container {
        padding: 20px;
    }
    .link-icon {
        font-size: 1.2em;
        width: 25px;
        margin-right: 10px;
    }
    .link-title {
        font-size: 0.95rem;
    }
    .link-url {
        font-size: 0.9rem;
    }
}
