/* MyRaft Logo Styles - Raft + Storage Unit Design */

/* Main Logo Container */
.storageunit-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: transform 0.3s ease;
}

.storageunit-logo:hover {
    transform: scale(1.05);
    text-decoration: none;
    color: inherit;
}

/* Logo Icon - Raft with Storage Units */
.logo-icon {
    position: relative;
    width: 40px;
    height: 40px;
    margin-right: 12px;
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
    overflow: hidden;
}

/* Raft Logs/Planks */
.logo-icon::before {
    content: '';
    position: absolute;
    width: 36px;
    height: 12px;
    background: repeating-linear-gradient(
        90deg,
        #8B4513 0px,
        #8B4513 4px,
        #A0522D 4px,
        #A0522D 8px,
        #8B4513 8px,
        #8B4513 12px,
        #A0522D 12px,
        #A0522D 16px,
        #8B4513 16px,
        #8B4513 20px,
        #A0522D 20px,
        #A0522D 24px,
        #8B4513 24px,
        #8B4513 28px,
        #A0522D 28px,
        #A0522D 32px,
        #8B4513 32px,
        #8B4513 36px
    );
    border-radius: 6px;
    bottom: 4px;
    left: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Raft Rope Binding */
.logo-icon .raft-rope {
    position: absolute;
    width: 32px;
    height: 3px;
    background: linear-gradient(90deg, #654321 0%, #8B7355 50%, #654321 100%);
    border-radius: 2px;
    bottom: 8px;
    left: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Storage Units on Raft */
.logo-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 14px;
    background: #ffffff;
    border-radius: 3px;
    top: 6px;
    left: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Storage Unit Details */
.logo-icon .unit-detail-1 {
    position: absolute;
    width: 5px;
    height: 10px;
    background: #ffc107;
    border-radius: 1px;
    top: 8px;
    left: 10px;
    box-shadow: 0 0 0 1px #ffffff;
}

.logo-icon .unit-detail-2 {
    position: absolute;
    width: 5px;
    height: 10px;
    background: #198754;
    border-radius: 1px;
    top: 8px;
    left: 15px;
    box-shadow: 0 0 0 1px #ffffff;
}

.logo-icon .unit-detail-3 {
    position: absolute;
    width: 5px;
    height: 10px;
    background: #dc3545;
    border-radius: 1px;
    top: 8px;
    left: 20px;
    box-shadow: 0 0 0 1px #ffffff;
}

/* Raft Mast/Pole */
.logo-icon .raft-mast {
    position: absolute;
    width: 2px;
    height: 8px;
    background: linear-gradient(180deg, #654321 0%, #8B7355 100%);
    border-radius: 1px;
    top: 2px;
    left: 19px;
}

/* Logo Text */
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-primary {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0d6efd;
    letter-spacing: -0.5px;
    margin-bottom: 2px;
}

.logo-secondary {
    font-size: 0.7rem;
    font-weight: 500;
    color: #495057; /* Darker gray for better contrast */
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Large Logo Variant */
.storageunit-logo.large .logo-icon {
    width: 60px;
    height: 60px;
    margin-right: 16px;
}

.storageunit-logo.large .logo-icon::before {
    width: 54px;
    height: 18px;
    bottom: 6px;
    left: 3px;
    background: repeating-linear-gradient(
        90deg,
        #8B4513 0px,
        #8B4513 6px,
        #A0522D 6px,
        #A0522D 12px,
        #8B4513 12px,
        #8B4513 18px,
        #A0522D 18px,
        #A0522D 24px,
        #8B4513 24px,
        #8B4513 30px,
        #A0522D 30px,
        #A0522D 36px,
        #8B4513 36px,
        #8B4513 42px,
        #A0522D 42px,
        #A0522D 48px,
        #8B4513 48px,
        #8B4513 54px
    );
}

.storageunit-logo.large .logo-icon .raft-rope {
    width: 48px;
    height: 4px;
    bottom: 12px;
    left: 6px;
}

.storageunit-logo.large .logo-icon::after {
    width: 36px;
    height: 21px;
    top: 9px;
    left: 12px;
}

.storageunit-logo.large .logo-icon .unit-detail-1 {
    width: 7px;
    height: 15px;
    top: 12px;
    left: 15px;
}

.storageunit-logo.large .logo-icon .unit-detail-2 {
    width: 7px;
    height: 15px;
    top: 12px;
    left: 22px;
}

.storageunit-logo.large .logo-icon .unit-detail-3 {
    width: 7px;
    height: 15px;
    top: 12px;
    left: 29px;
}

.storageunit-logo.large .logo-icon .raft-mast {
    width: 3px;
    height: 12px;
    top: 3px;
    left: 28.5px;
}

.storageunit-logo.large .logo-primary {
    font-size: 2rem;
}

.storageunit-logo.large .logo-secondary {
    font-size: 0.8rem;
}

/* Small Logo Variant */
.storageunit-logo.small .logo-icon {
    width: 30px;
    height: 30px;
    margin-right: 8px;
}

.storageunit-logo.small .logo-icon::before {
    width: 27px;
    height: 9px;
    bottom: 3px;
    left: 1.5px;
    background: repeating-linear-gradient(
        90deg,
        #8B4513 0px,
        #8B4513 3px,
        #A0522D 3px,
        #A0522D 6px,
        #8B4513 6px,
        #8B4513 9px,
        #A0522D 9px,
        #A0522D 12px,
        #8B4513 12px,
        #8B4513 15px,
        #A0522D 15px,
        #A0522D 18px,
        #8B4513 18px,
        #8B4513 21px,
        #A0522D 21px,
        #A0522D 24px,
        #8B4513 24px,
        #8B4513 27px
    );
}

.storageunit-logo.small .logo-icon .raft-rope {
    width: 24px;
    height: 2px;
    bottom: 6px;
    left: 3px;
}

.storageunit-logo.small .logo-icon::after {
    width: 18px;
    height: 10px;
    top: 4.5px;
    left: 6px;
}

.storageunit-logo.small .logo-icon .unit-detail-1 {
    width: 3px;
    height: 7px;
    top: 6px;
    left: 7.5px;
}

.storageunit-logo.small .logo-icon .unit-detail-2 {
    width: 3px;
    height: 7px;
    top: 6px;
    left: 11px;
}

.storageunit-logo.small .logo-icon .unit-detail-3 {
    width: 3px;
    height: 7px;
    top: 6px;
    left: 14.5px;
}

.storageunit-logo.small .logo-icon .raft-mast {
    width: 1.5px;
    height: 6px;
    top: 1.5px;
    left: 14.25px;
}

.storageunit-logo.small .logo-primary {
    font-size: 1.2rem;
}

.storageunit-logo.small .logo-secondary {
    font-size: 0.6rem;
}

/* Icon Only Variant */
.storageunit-logo.icon-only .logo-text {
    display: none;
}

.storageunit-logo.icon-only .logo-icon {
    margin-right: 0;
}

/* Text Only Variant */
.storageunit-logo.text-only .logo-icon {
    display: none;
}

/* Dark Theme Variant */
.storageunit-logo.dark .logo-primary {
    color: #ffffff;
}

.storageunit-logo.dark .logo-secondary {
    color: #adb5bd;
}

/* Animated Logo */
.storageunit-logo.animated .logo-icon {
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
        box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
    }
    50% {
        transform: translateY(-3px);
        box-shadow: 0 4px 16px rgba(13, 110, 253, 0.4);
    }
}

/* Raft Movement Animation */
.storageunit-logo.animated .logo-icon::before {
    animation: raftWave 2s ease-in-out infinite;
}

@keyframes raftWave {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(1deg);
    }
    75% {
        transform: rotate(-1deg);
    }
}

/* Responsive Logo */
@media (max-width: 768px) {
    .storageunit-logo .logo-primary {
        font-size: 1.3rem;
    }
    
    .storageunit-logo .logo-secondary {
        font-size: 0.65rem;
    }
    
    .storageunit-logo .logo-icon {
        width: 35px;
        height: 35px;
        margin-right: 10px;
    }
}

@media (max-width: 576px) {
    .storageunit-logo .logo-secondary {
        display: none;
    }
    
    .storageunit-logo .logo-primary {
        font-size: 1.1rem;
    }
} 