/* main.css: Custom Styles for GeoSphere */

/* --- Global Styles --- */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f9fafb;
    color: #374151;
}

/* --- Tailwind Replacement Classes --- */

/* Background colors */
.bg-gray-100 {
    background-color: #f3f4f6;
}

.bg-teal-600 {
    background-color: #0d9488;
}

.bg-white {
    background-color: #ffffff;
}

/* Text colors */
.text-white {
    color: #ffffff;
}

.text-gray-800 {
    color: #1f2937;
}

.text-gray-500 {
    color: #6b7280;
}

.text-gray-700 {
    color: #374151;
}

.text-teal-600 {
    color: #0d9488;
}

.text-blue-600 {
    color: #2563eb;
}

.text-black {
    color: #000000;
}

/* Text sizes */
.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

/* Font weights */
.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

/* Padding */
.p-4 {
    padding: 1rem;
}

.p-2 {
    padding: 0.5rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Margin */
.mb-4 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

/* Flexbox */
.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.items-center {
    align-items: center;
}

.gap-4 {
    gap: 1rem;
}

/* Borders */
.border {
    border-width: 1px;
    border-style: solid;
}

.border-gray-300 {
    border-color: #d1d5db;
}

.border-b {
    border-bottom-width: 1px;
    border-bottom-style: solid;
}

.border-b-2 {
    border-bottom-width: 2px;
    border-bottom-style: solid;
}

.rounded {
    border-radius: 0.25rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-md {
    border-radius: 0.375rem;
}

.rounded-l-md {
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}

.rounded-r-md {
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

/* Shadows */
.shadow {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Grid */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

/* Width/Height */
.w-full {
    width: 100%;
}

.h-48 {
    height: 12rem;
}

/* Object fit */
.object-cover {
    object-fit: cover;
}

/* Cursor */
.cursor-pointer {
    cursor: pointer;
}

/* Hover states */
.hover\:underline:hover {
    text-decoration: underline;
}

.hover\:bg-gray-100:hover {
    background-color: #f3f4f6;
}

/* --- Map Container --- */
#map {
    width: 100%;
    height: 100%;
    min-height: 300px;
}

/* --- News Card Custom Styling (with hover animation) --- */
.news-card {
    cursor: pointer;
    border-radius: 0.5rem;
    background-color: #ffffff;
    padding: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Squared news card layout */
.news-card-squared {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 500px;
}

/* Full image display with contain */
.news-card-squared img {
    width: 100%;
    height: 256px;
    object-fit: contain;
    background-color: #f9fafb;
}

/* Line clamp utility for description */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive grid adjustments */
@media (min-width: 768px) {
    #news {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    #news {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .news-card-squared {
        min-height: 450px;
    }
}

/* --- Tabs --- */
.tab-btn {
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
    color: #6b7280;
}

.tab-btn.active-tab {
    color: #0d9488;
    /* teal-600 */
    border-color: #0d9488;
    font-weight: bold;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* --- Buttons --- */
button {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* --- Trivia/Fact Button --- */
#factBtn {
    transition: background-color 0.3s ease, transform 0.1s ease;
}

#factBtn:hover {
    background-color: #047857;
    /* darker teal */
    transform: translateY(-1px);
}

/* --- Answer Buttons (if trivia expands later) --- */
.answer-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    background-color: #f9fafb;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.answer-btn:not([disabled]):hover {
    background-color: #f3f4f6;
    transform: translateY(-1px);
}

.answer-btn.correct {
    background-color: #10b981;
    color: white;
    font-weight: bold;
}

.answer-btn.incorrect {
    background-color: #ef4444;
    color: white;
    font-weight: bold;
}

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

/* Responsive */
@media (min-width: 768px) {
    .grid-cols-1 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.w-6 {
    width: 1.5rem;
}

.h-6 {
    height: 1.5rem;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.gap-2 {
    gap: 0.5rem;
}

/* SVG styles */
svg {
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}



.app-footer {
    color: black;
    background: white;
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid black;
}

.footer-inner-container {
    max-width: 80rem;
    /* max-w-7xl equivalent for large containers */
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
}

.footer-section {
    flex: 1 1 33.33%;
    text-align: center;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.footer-contact {
    padding-right: 1.5rem;
    border-right: 1px solid black;
    padding-left: 0;
    /* Align first item correctly */
}

.footer-links {
    border-right: 1px solid black;
}

.footer-about {
    padding-right: 0;
    /* Align last item correctly */
}

.footer-heading {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.footer-developer-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.footer-developer-title {
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.footer-links-group {
    line-height: 1.5;
}

.footer-link {
    display: block;
    font-size: 0.8rem;
    color: blue;
    text-decoration: underline;
}

.quick-links-list-wrap {
    display: inline-block;
}

.quick-links-list {
    list-style-type: disc;
    margin-left: 1.25rem;
    padding: 0;
    text-align: left;
}

.quick-links-item {
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}

.footer-about-text {
    font-size: 0.8rem;
    line-height: 1.6;
}

.footer-copyright {
    border-top: 1px solid black;
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center;
}

.footer-copyright-text {
    font-size: 0.8rem;
    color: #555;
}

/* Responsive adjustments for mobile devices */
@media (max-width: 768px) {
    .footer-inner-container {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .footer-section {
        flex: 1 1 100%;
        width: 100%;
        padding-left: 0;
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid #ccc;
        padding-bottom: 1.5rem;
    }

    .footer-section:last-child {
        border-bottom: none;
    }

    .footer-contact {
        border-right: none;
    }
}