/* Link Generator Styles */
/* Uses same design system as shipping calculator */

/* Design System Colors */
:root {
    --color-pink: #E27EF9;
    --color-black: #000000;
    --color-purple: #7200FF;
    --color-white: #FFFFFF;
}

/* Import Montserrat Font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&display=swap');

/* Wrapper */
.repgalaxy-link-generator {
    font-family: 'Montserrat', sans-serif;
    color: var(--color-white);
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Title */
.repgalaxy-link-generator h2 {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0 0 40px 0;
    color: var(--color-white);
    text-shadow: 0 0 30px var(--color-purple);
}

/* Error Message */
.repgalaxy-link-generator .repgalaxy-error {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid #ff4444;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.repgalaxy-link-generator .repgalaxy-error p {
    margin: 0;
    color: #ff6666;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

/* Form */
.repgalaxy-link-generator form {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

/* Input Row */
.repgalaxy-input-row {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 700px;
    background: var(--color-black);
    border: 2px solid var(--color-purple);
    border-radius: 30px;
    box-shadow: 0px 0px 30px 0px var(--color-purple);
    padding: 5px 5px 5px 20px;
}

.repgalaxy-input-row input[type="url"],
.repgalaxy-input-row input[type="text"] {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--color-white);
    padding: 10px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    outline: none;
}

.repgalaxy-input-row input::placeholder {
    color: var(--color-white);
    font-weight: 600;
    opacity: 0.5;
}

.repgalaxy-input-row button {
    background: var(--color-black);
    color: var(--color-white);
    border: 2px solid var(--color-purple);
    border-radius: 25px;
    padding: 10px 25px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: 10px;
    white-space: nowrap;
}

.repgalaxy-input-row button:hover {
    background: var(--color-purple);
}

/* Results Container */
.repgalaxy-results {
    max-width: 900px;
    margin: 0 auto;
}

/* Top Row: Best Agent + Raw Link */
.repgalaxy-top-row {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-bottom: 40px;
}

.repgalaxy-top-col {
    text-align: center;
}

.repgalaxy-top-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

/* Agent Card */
.repgalaxy-agent-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.repgalaxy-agent-card:hover {
    transform: scale(1.05);
}

/* Agent Logo */
.repgalaxy-agent-logo {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 10px;
}

.repgalaxy-agent-logo img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.repgalaxy-agent-logo-placeholder {
    background: var(--color-purple);
    color: var(--color-white);
    font-size: 32px;
    font-weight: 800;
}

/* Raw Link Logo */
.repgalaxy-raw-logo {
    background: transparent;
    border: none;
    color: var(--color-white);
    font-size: 60px;
    font-weight: 800;
}

/* Agent Name */
.repgalaxy-agent-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-white);
    letter-spacing: 0.5px;
}

/* Hover Overlay */
.repgalaxy-agent-overlay {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    border-radius: 15px;
    background: var(--color-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.repgalaxy-agent-overlay span {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--color-white);
}

.repgalaxy-agent-card:hover .repgalaxy-agent-overlay {
    opacity: 1;
}

.repgalaxy-raw-card .repgalaxy-agent-overlay {
    background: var(--color-purple);
}

/* Other Agents Section */
.repgalaxy-other-agents {
    text-align: center;
}

/* Toggle Button */
.repgalaxy-other-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--color-black);
    border: 2px solid var(--color-purple);
    border-radius: 25px;
    padding: 12px 30px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0px 0px 20px 0px rgba(114, 0, 255, 0.4);
}

.repgalaxy-other-toggle:hover {
    box-shadow: 0px 0px 30px 0px rgba(114, 0, 255, 0.6);
}

.repgalaxy-other-toggle span:first-child {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--color-white);
    letter-spacing: 2px;
}

.repgalaxy-toggle-arrow {
    font-size: 12px;
    color: var(--color-white);
    transition: transform 0.3s;
}

.repgalaxy-other-toggle.open .repgalaxy-toggle-arrow {
    transform: rotate(180deg);
}

/* Other Content */
.repgalaxy-other-content {
    display: none;
    margin-top: 30px;
    background: var(--color-black);
    border: 2px solid var(--color-purple);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0px 0px 30px 0px rgba(114, 0, 255, 0.3);
}

.repgalaxy-other-content.open {
    display: block;
}

/* Agents Grid */
.repgalaxy-agents-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 25px;
    justify-items: center;
}

/* Loading */
.repgalaxy-loading {
    text-align: center;
    padding: 50px;
}

.repgalaxy-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(114, 0, 255, 0.2);
    border-top-color: var(--color-purple);
    border-radius: 50%;
    animation: repgalaxy-spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes repgalaxy-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive - Tablet */
@media (max-width: 1100px) {
    .repgalaxy-agents-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 18px;
    }
}

@media (max-width: 900px) {
    .repgalaxy-agents-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .repgalaxy-link-generator {
        padding: 20px 15px;
    }

    .repgalaxy-link-generator h2 {
        font-size: 24px;
        letter-spacing: 1px;
        margin-bottom: 30px;
    }

    .repgalaxy-input-row {
        padding: 4px 4px 4px 15px;
    }

    .repgalaxy-input-row input {
        font-size: 14px;
    }

    .repgalaxy-input-row button {
        padding: 8px 18px;
        font-size: 12px;
    }

    .repgalaxy-top-row {
        gap: 40px;
    }

    .repgalaxy-top-label {
        font-size: 14px;
    }

    .repgalaxy-agent-logo {
        width: 70px;
        height: 70px;
    }

    .repgalaxy-agent-overlay {
        width: 70px;
        height: 70px;
    }

    .repgalaxy-agents-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }

    .repgalaxy-other-content {
        padding: 18px;
    }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    .repgalaxy-link-generator {
        padding: 15px 10px;
    }

    .repgalaxy-link-generator h2 {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .repgalaxy-input-row {
        flex-direction: column;
        padding: 10px;
        border-radius: 20px;
        gap: 10px;
    }

    .repgalaxy-input-row input {
        width: 100%;
        text-align: center;
        font-size: 13px;
    }

    .repgalaxy-input-row button {
        margin-left: 0;
        width: 100%;
        padding: 10px 20px;
    }

    /* Keep Best Agent and Raw Link on 2 columns with equal spacing */
    .repgalaxy-top-row {
        justify-content: space-evenly;
        gap: 0;
        width: 100%;
    }

    .repgalaxy-top-label {
        font-size: 12px;
    }

    .repgalaxy-agent-logo {
        width: 60px;
        height: 60px;
        border-radius: 10px;
    }

    .repgalaxy-agent-overlay {
        width: 60px;
        height: 60px;
        border-radius: 10px;
    }

    .repgalaxy-agent-overlay span {
        font-size: 10px;
    }

    .repgalaxy-agent-name {
        font-size: 9px;
    }

    .repgalaxy-other-toggle {
        padding: 10px 20px;
    }

    .repgalaxy-other-toggle span:first-child {
        font-size: 14px;
    }

    /* 3 agents per row on mobile - equal spacing */
    .repgalaxy-agents-grid {
        grid-template-columns: repeat(3, 1fr);
        column-gap: 0;
        row-gap: 15px;
    }

    .repgalaxy-other-content {
        padding: 15px 10px;
        border-radius: 15px;
    }
}
